[SOLVED]cp: cannot stat `./basicdat': No such file...

Help regarding development/scripting, troubleshooting or just general gameplay -- anything that hasn't already been answered in the Wiki or pinned FAQs.

Moderator: Developers

Post Reply
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

[SOLVED]cp: cannot stat `./basicdat': No such file...

Post by shirish »

Hi all,
The make install went smoothly. Please see the successful make install at http://pastebin.com/Rw6LU8sN

While doing sudo make install I get this however :-

Code: Select all

/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src$ sudo make install
make -C ./game all PREFIX=/usr PROJ_NAME=egoboo-2.x
make[1]: Entering directory `/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src/game'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src/game'
######################################
# Thank you for installing egoboo! 
#
# The default install of egoboo will require the commandline 
#     "sudo make install"
# and the required password
#
# If you do not have root access on this machine, 
# you can specify a prefix on the command line: 
#     "make install PREFIX=$HOME/.local"
# where the environment variable PREFIX specifies a
# virtual root for your installation. In this example,
# it is a local installation for this username only.
#
mkdir -p /usr/games
install -m 755 ./game/egoboo-2.x /usr/games
mkdir -p /usr/share/games/egoboo-2.x
cp -rdf ./basicdat /usr/share/games/egoboo-2.x
cp: cannot stat `./basicdat': No such file or directory
make: *** [install] Error 1
Any ideas anybody what went wrong and where ? I do have the physfs library installed (its provided in Debian ) .

Code: Select all

$ aptitude show libphysfs-dev
Package: libphysfs-dev                   
State: installed
Automatically installed: no
Version: 2.0.2-3
Priority: optional
Section: libdevel
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Uncompressed Size: 1,126 k
Depends: libc6 (>= 2.4), libncurses5 (>= 5.5-5~), libphysfs1 (= 2.0.2-3),
         libreadline6 (>= 6.0), zlib1g (>= 1:1.1.4)
Description: filesystem abstraction library for game programmers (development headers)
 The PhysicsFS filesystem abstraction library provides a simple C interface
 to aid game programmers in utilizing game assets packaged in many different
 types of archive files. 
 
 This package contains the development libraries and headers.
Homepage: http://www.icculus.org/physfs/

Tags: devel::library, role::devel-lib
Also enet is also available under GNU/Linux Debian.

Code: Select all

$ aptitude show libenet1a
Package: libenet1a                       
State: installed
Automatically installed: yes
Version: 1.3.3-1
Priority: optional
Section: libs
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Uncompressed Size: 73.7 k
Depends: libc6 (>= 2.2.5)
PreDepends: multiarch-support
Conflicts: libenet1
Replaces: libenet1
Description: thin network communication layer on top of UDP
 ENet's purpose is to provide a relatively thin, simple and robust network  communication layer on top of UDP (User Datagram Protocol). The primary  feature it provides is optional reliable, in-order delivery of packets. 
 
 ENet is NOT intended to be a general purpose high level networking library  that handles authentication, lobbying, server discovery, compression, encryption and other high level, often application level or dependent tasks.
Homepage: http://enet.bespin.org/
I also did the required 'swig -lua ego.i' command as well before compiling. I tried it twice but come with the same result.

I dunno why the dependecies has this gem in it :-
You will have to build and install the PhysicsFS library manually, as PhysicsFS >= 2.0.0 is not available on Ubuntu (and maybe other distros). Once you install CMake using your package manager, you can execute cmake from the console in the PhysicsFS directory. To obtain the source files for PhysicsFS, go to http://icculus.org/physfs/. To actually build the project use “cmake : make all : make install”
As far as I can tell physicsFS is available on ubuntu. Please see http://packages.ubuntu.com/search?keywo ... ection=all .

Usually whatever is in debian, flows to Ubuntu .
Last edited by shirish on Sun Jul 17, 2011 5:20 pm, edited 1 time in total.
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
bgbirdsey
{]-[0{0|307 (Developer)
{]-[0{0|307 (Developer)
Posts: 1864
Joined: Wed Jul 23, 2008 4:22 am
Location: Minnesota, USA

Re: cp: cannot stat `./basicdat': No such file or directory

Post by bgbirdsey »

PHYSFS 2.0 was not available at the time of its writing.

This is why you must combine branches/install and branches/2.8.x. The all of the game data (including the basicdat directory) exists only in branches/install.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: cp: cannot stat `./basicdat': No such file or directory

Post by penguinflyer5234 »

or use sudo make install_svn when using the svn
...
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

Re: cp: cannot stat `./basicdat': No such file or directory

Post by shirish »

Hi all,
What I did was use the full distribution of 2.8.1.tar.gz from the downloads . The http://downloads.sourceforge.net/egoboo ... 8.1.tar.gz and extracted it and ran it . I am NOT using the svn anymore because its just much more work.

I looked at the README.Linux and did as asked there and got the error as above.

The issue I'm having is after extraction of 2.8.1.tar.gz file and NOT from the two svn branches.

Also are you guys available on IRC ?
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
bgbirdsey
{]-[0{0|307 (Developer)
{]-[0{0|307 (Developer)
Posts: 1864
Joined: Wed Jul 23, 2008 4:22 am
Location: Minnesota, USA

Re: cp: cannot stat `./basicdat': No such file or directory

Post by bgbirdsey »

So, is there a basicdat directory? if there is, then it can be copied, if there isnt than it cant.
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

Re: cp: cannot stat `./basicdat': No such file or directory

Post by shirish »

Hi all,
Do you mean I need to copy the basicdat directory which is at /usr/local/src/egoboo-snapshot/egoboo-2.8.1/ directory to usr/local/src/egoboo-snapshot/egoboo-2.8.1/src/ directory ? Keeping fingers crossed and doing that if that is the only thing required.

Edit 0: This is going to be a long post so please excuse. Had to copy over basicdat directory, modules directory, the setup.txt file and the controls.txt file. If any of the files or the directories were missing I would get this during the sudo make install process :-

Code: Select all

/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src$ sudo make install
make -C ./game all PREFIX=/usr PROJ_NAME=egoboo-2.x
make[1]: Entering directory `/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src/game'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src/game'
######################################
# Thank you for installing egoboo! 
#
# The default install of egoboo will require the commandline 
#     "sudo make install"
# and the required password
#
# If you do not have root access on this machine, 
# you can specify a prefix on the command line: 
#     "make install PREFIX=$HOME/.local"
# where the environment variable PREFIX specifies a
# virtual root for your installation. In this example,
# it is a local installation for this username only.
#
mkdir -p /usr/games
install -m 755 ./game/egoboo-2.x /usr/games
mkdir -p /usr/share/games/egoboo-2.x
cp -rdf ./basicdat /usr/share/games/egoboo-2.x
cp -rdf ./modules /usr/share/games/egoboo-2.x
mkdir -p /root/.egoboo-2.x
mkdir -p /root/.egoboo-2.x/players
mkdir -p /usr/etc/egoboo-2.x
cp -rdf setup.txt /usr/etc/egoboo-2.x/setup.txt
cp -rdf controls.txt /usr/etc/egoboo-2.x/controls.txt
cp: cannot stat `controls.txt': No such file or directory
make: *** [install] Error 1
After copying all the files and directories and having a successful compile this is how it looks. This is in /usr/local/src/egoboo-snapshot/egoboo-2.8.1/src . :-

Code: Select all

./controls.txt
./DEPENDENCIES.txt
./Doxyfile
./egoboo_vs10.sln
./egoboo_vs6.dsw
./Egoboo_vs7.sln
./Egoboo_vs9.sln
./Egoboo.workspace
./file.txt
./Makefile
./My Egoboo Stuff.lnk
./README.Linux
./README.Mac
./README.Windows
./run_astyle.bat
./run_astyle.sh
./setup.txt

./basicdat:
actions.txt
aicodes.txt
bars_new.png
bars.png
blip.bmp
Bo_Chen.ttf
cursor.png
Egobooish.ttf
fans.txt
font_new.png
font_new_shadow.png
font_original.png
font.png
font.txt
gametips.txt
globalobjects
globalparticles
Gnomish_digital.ttf
icon.bmp
joyaicon.bmp
joybicon.bmp
keybicon.bmp
link.txt
lvlup.wav
Mael.ttf
menu
mousicon.bmp
music
nullicon.png
pc8x8.fon
phong.bmp
pitfall.ogg
randomtreasure.txt
scancode.txt
script.txt
shieldblock.wav
Squerkle.ttf
templates
xpbar.png

./enet:
api.txt
design.txt
enet.cbp
enet_vs10.vcxproj
enet_vs10.vcxproj.filters
enet_vs6.dsp
enet_vs7.vcproj
enet_vs9.vcproj
host.c
host.o
include
lib
LICENSE
list.c
list.o
Makefile
memory.c
memory.o
packet.c
packet.o
peer.c
peer.o
protocol.c
protocol.o
README
tutorial.txt
unix.c
unix.o
win32.c

./game:
bbox.c
bbox.h
bbox.inl
bbox.o
bsp.c
bsp.h
bsp.inl
bsp.o
camera.c
camera.h
camera.o
change.log
char.c
char.h
char.inl
char.o
ChrList.c
ChrList.h
ChrList.o
client.c
client.h
client.o
clock.c
clock.h
clock.o
collision.c
collision.h
collision.o
egoboo-2.x
egoboo.c
egoboo_config.h
egoboo_console.c
egoboo_console.h
egoboo_console.inl
egoboo_console.o
egoboo_doxygen.h
egoboo_endian.c
egoboo_endian.h
egoboo_endian.o
egoboo_fileutil.c
egoboo_fileutil.h
egoboo_fileutil.o
egoboo.h
egoboo_math.c
egoboo_math.h
egoboo_math.inl
egoboo_math.o
egoboo_mem.h
egoboo.o
egoboo_object.c
egoboo_object.h
egoboo_object.o
egoboo_platform.h
egoboo_process.c
egoboo_process.h
egoboo_process.o
egoboo_setup.c
egoboo_setup.h
egoboo_setup.o
egoboo_state_machine.h
egoboo_strutil.c
egoboo_strutil.h
egoboo_strutil.o
egoboo_typedef.c
egoboo_typedef_cpp.h
egoboo_typedef.h
egoboo_typedef.o
egoboo_vfs.c
egoboo_vfs.h
egoboo_vfs.o
egoboo_vs6.dsp
ego.i
ego_wrap.c
enchant.c
enchant.h
enchant.inl
enchant.o
EncList.c
EncList.h
EncList.o
extensions
file_common.c
file_common.h
file_common.o
file_formats
font_bmp.c
font_bmp.h
font_bmp.o
font_ttf.c
font_ttf.h
font_ttf.o
game.c
game.cbp
game.h
game.o
game_vs10.vcxproj
game_vs10.vcxproj.filters
game_vs7.vcproj
game_vs9.vcproj
graphic.c
graphic_fan.c
graphic_fan.h
graphic_fan.o
graphic.h
graphic_mad.c
graphic_mad.h
graphic_mad.o
graphic.o
graphic_prt.c
graphic_prt.h
graphic_prt.o
hash.c
hash.h
hash.o
IDSZ_map.c
IDSZ_map.h
IDSZ_map.o
input.c
input.h
input.o
lighting.c
lighting.h
lighting.o
link.c
link.h
link.o
log.c
log.h
log.o
lua_console.c
lua_console.h
mad.c
mad.h
mad.o
Makefile
Makefile_Amiga
Makefile.lua
md2.c
md2.h
md2.inl
md2.o
menu.c
menu.h
menu.o
mesh.c
mesh.h
mesh.inl
mesh.o
mpd_BSP.c
mpd_BSP.h
mpd_BSP.o
network.c
network.h
network.o
obj_BSP.c
obj_BSP.h
obj_BSP.o
Obsolete
particle.c
particle.h
particle.inl
particle.o
passage.c
passage.h
passage.o
physics.c
physics.h
physics.inl
physics.o
platform
profile.c
profile.h
profile.inl
profile.o
PrtList.c
PrtList.h
PrtList.o
quest.c
quest.h
quest.o
rpc.c
rpc.h
script.c
script_compile.c
script_compile.h
script_compile.o
script_functions.c
script_functions.h
script_functions.o
script.h
script.o
server.c
server.h
server.o
sound.c
sound.h
sound.o
system.h
texture.c
texture.h
texture.o
ui.c
ui.h
ui.o
use_swig_nix.sh
use_swig_win32.bat
use_swig++_win32.bat

./modules:
abyss1.mod
abyss2.mod
advent.mod
archaeologist.mod
archmage.mod
benemocave.mod
bishopiacity.mod
catacomb1.mod
catacomb2.mod
cobolemperor.mod
crypt.mod
elf.mod
firedom.mod
forgotten.mod
gnome.mod
griffin.mod
healer.mod
heist.mod
imprisoned1.mod
imprisoned2.mod
imprisoned3.mod
imprisoned4.mod
imprisoned5.mod
paladin.mod
palash.mod
palice.mod
palsand.mod
palshad.mod
palwater.mod
rogue.mod
sandweg.mod
soldier.mod
tourist.mod
valkyrie.mod
wizard.mod
zippy.mod
zombor.mod

./osx:
Egoboo_Prefix.pch
Egoboo.xcodeproj
English.lproj
hat.icns
Info.plist
SDLMain.h
SDLMain.m
SDLMain.nib
skull.icns

./res:
egoboo3.ico
egoboo.ico
egoboo.rc
install.ico
old-egoboo.ico
resource.h
This is what my successful compile statement looks like :-

Code: Select all

:/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src$ sudo make install
make -C ./game all PREFIX=/usr PROJ_NAME=egoboo-2.x
make[1]: Entering directory `/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src/game'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/egoboo-snapshot/egoboo-2.8.1/src/game'
######################################
# Thank you for installing egoboo! 
#
# The default install of egoboo will require the commandline 
#     "sudo make install"
# and the required password
#
# If you do not have root access on this machine, 
# you can specify a prefix on the command line: 
#     "make install PREFIX=$HOME/.local"
# where the environment variable PREFIX specifies a
# virtual root for your installation. In this example,
# it is a local installation for this username only.
#
mkdir -p /usr/games
install -m 755 ./game/egoboo-2.x /usr/games
mkdir -p /usr/share/games/egoboo-2.x
cp -rdf ./basicdat /usr/share/games/egoboo-2.x
cp -rdf ./modules /usr/share/games/egoboo-2.x
mkdir -p /root/.egoboo-2.x
mkdir -p /root/.egoboo-2.x/players
mkdir -p /usr/etc/egoboo-2.x
cp -rdf setup.txt /usr/etc/egoboo-2.x/setup.txt
cp -rdf controls.txt /usr/etc/egoboo-2.x/controls.txt
#####################################
# Egoboo installation is finished
#####################################
Now can somebody share where my egoboo game is installed ? I ask as even though I have installed it, I cannot find the entry in my Debian menu.

Edit 1: Found it. I do not know why it does not show in the menu but did found it.

Code: Select all

/usr/games$ ./egoboo-2.x 
Initializing filesystem services...
Game directories are:
	Binaries: /usr/games/
	Data: /usr/share/games/egoboo-2.x
	User Data: /home/shirish/.egoboo-2.x
	Config Files: /usr/etc/egoboo-2.x
Atleast do get the menu :)
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
Post Reply