No such file or directory what am i missing here ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well ... you've officially moved into "wtf?" territory. I don't have any more simple ideas, so can you do
Code:
strace ./cod2_lnxded >/tmp/strace.txt 2>&1
in ~/cod2 then attach /tmp/strace.txt. This will trace the system calls as you try to start the server and will hopefully have more information as to what specifically is not being found.
Quote:
"current working directory" meaning the directory that I have navigated to in the terminal
Correct. theNbomr means well but didn't read the entire topic.
Did you make sure to copy the entire game disc files into that directory? The readme says you must have all of the files there to be able to run the server not just the server files. The directory should be 3.5gigs in size.
Well ... you've officially moved into "wtf?" territory. I don't have any more simple ideas, so can you do
Code:
strace ./cod2_lnxded >/tmp/strace.txt 2>&1
in ~/cod2 then attach /tmp/strace.txt. This will trace the system call.s as you try to start the server and will hopefully have more information as to what specifically is not being found.
Correct. theNbomr means well but didn't read the entire topic.
Well no surprise there my friend i spend way to much time in that territory . Very good thanks for the chuckle . I will give your other suggestion a try when i get back on that rig . Have to walk away with some sanity every now and then cause the real biatch is that i had it working with the exception of the lib.error argh !
thanks again
Did you make sure to copy the entire game disc files into that directory? The readme says you must have all of the files there to be able to run the server not just the server files. The directory should be 3.5gigs in size.
Yessir all the files are there everything i need , check it against my rented server and all the same.
hmmmm I dunno then. Did you make sure to edit the library paths so that it can find everything? I noticed that in the readme file as well. If you got everything there then I am at a loss as to what it is missing. You think they could have at least had the binary file give you a indication of what damn file was missing rather then giving a generic error....
type echo $LD_LIBRARY_PATH and see if the cod_lnxded is there.
hmmmm I dunno then. Did you make sure to edit the library paths so that it can find everything? I noticed that in the readme file as well. If you got everything there then I am at a loss as to what it is missing. You think they could have at least had the binary file give you a indication of what damn file was missing rather then giving a generic error....
type echo $LD_LIBRARY_PATH and see if the cod_lnxded is there.
nothing returned when typing in that , but not sure i follow as far as when i need to type that in (working directory) ?
I did not edit the library paths as I am not clear or have any understanding of it . I wish i had come here when I was in fact having that error listed in the read me about the library as I had the server starting and reporting that error . After that I tried to add the libs listed in the read me that i downloaded from the site listed there as well . Tried to figure out where they went and ended screwing up the OS and had to reinstall. Which leaves me here after a new os install , I cant get the server to run again . So frustrating !
I have a separate hard drive installed on this machine so Im gonna install a different distro on it . This absolutely makes no sense but heh such is life and as stated before I am not going to throw in the towel this time i'm in for the duration !
Ok installed debian on another hard drive for some reason grub did not see the previous install of ubuntu but thats another thread eventually . I have booted in debian by removing the power to the raptor that has ubuntu .
So im booted in debian and have set up the server and it works ! well kinda once again receiving the error about the libraries as noted in the linux readme included.
Code:
gunz@debian:~$ cd
gunz@debian:~$ cd cod2
gunz@debian:~/cod2$ ./cod2_lnxded +set dedicated 2 +set net_ip 0.0.0.0 +exec server.cfg +set sv_punkbuster 1 +map_rotate
./cod2_lnxded: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
gunz@debian:~/cod2$
I have downloaded the correct library files but once again dont know where to "drop" them I tried using /lib in another install and it did not work , this is where i really am in the dark. Here is the section about it from the readme , I dont understand what is "dynamic linker" as noted in the read me
Code:
./cod2_lnxded: error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory
COD2 is a C++ program built with gcc 3.3.4, which means it needs a
system library specific to gcc 3.3. Older Linux systems won't have
this installed, and we're starting to see newer Linux distributions that
don't have this either, since they are supplying an incompatible
gcc 3.4 version. The good news is that you can drop the needed library
into your system without breaking anything else.
Here is the library you need, if your Linux distribution doesn't supply it:
http://icculus.org/updates/cod/gcc3-libs.tar.bz2
You want to unpack that somewhere that the dynamic linker will see it
(if you are sure it won't overwrite any files, you can even use /lib).
The brave can put it in the same directory as the game and run the server
like this:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ./cod2_lnxded
In the root directory there are 3 lib directories /lib /lib32 /lib64
Would love not to hose this install but am open to any suggestions on where these files are to be .
thanks for your help
Wrath
Last edited by wrathlonz; 05-27-2010 at 09:57 AM.
Reason: additional info
Oh Lord this is getting mental , I cannot place these files anywhere as I do not have permission. "write access denied"
Seeing there is no way to log in as root in debian , well actually there is but what i found about doing it was suggested against by all and i doubt i could do it anyway. So i guess the only way to do it is with the terminal with root permission *sigh* How the heck do i do that ? I have unpacked the lib files into a dir that i have created in my home dir. Still not sure where they go but am guessing and willing to place them in the /lib directory but cant because of the reason stated above. Would it be correct to assume that the only dir's i will have write access to is the ones i create as the logged in user ?
Either sudo or su. You should have sudo already set up if root login is not enabled.
Code:
sudo apt-get install libstdc++5
or
Code:
sudo su -
apt-get install libstdc++5
AlucardZero much obliged for your efforts , I have to walk away before i break something ! To elaborate or clarify when I try the command as you have listed i am prompted for a password . Now when setting this up I wrote down the "root" password and am perfectly sure I have the right one . I assume that it is the password that its asking for . No go as you can see in the code listed below from the console , the first two attempts are with the password i used when installing the OS and the third attempt is my user password for the gunz account .
I have to head out to do some work and wont be back for some while , just wanted to thank you again . Im really frustrated and need to walk away anyways but wanted to be sure to thank you for your patience . Here is the results of me trying to use the command you listed
Code:
gunz@debian:~$ sudo su
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for gunz:
Sorry, try again.
[sudo] password for gunz:
Sorry, try again.
[sudo] password for gunz:
gunz is not in the sudoers file. This incident will be reported.
gunz@debian:~$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.