LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-26-2010, 08:34 PM   #16
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615

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.
 
Old 05-26-2010, 08:50 PM   #17
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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.
 
Old 05-26-2010, 09:52 PM   #18
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
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
 
Old 05-26-2010, 09:53 PM   #19
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by exvor View Post
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.

thanks
Wrath
 
Old 05-27-2010, 03:42 AM   #20
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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.
 
Old 05-27-2010, 05:59 AM   #21
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
nothing returned

Quote:
Originally Posted by exvor View Post
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 !

thanks again
Wrath
 
Old 05-27-2010, 07:11 AM   #22
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by Nylex View Post
If permissions are the problem, you'll get a "Permission denied" message, rather than a "No such file or directory".
Perhaps, but ls and even if [ -r $FILE ]; then do NOT result in Permission denied.
 
Old 05-27-2010, 09:42 AM   #23
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 05-27-2010, 10:47 AM   #24
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
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 ?

thanks again
Wrath
 
Old 05-27-2010, 11:42 AM   #25
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Instead of that, can you (as root) install the package libstdc++5 (32-bit) or ia32-libs (64-bit)? http://packages.debian.org/search?se...table&arch=any
 
Old 05-27-2010, 01:14 PM   #26
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
not sure how to

Quote:
Originally Posted by AlucardZero View Post
Instead of that, can you (as root) install the package libstdc++5 (32-bit) or ia32-libs (64-bit)? http://packages.debian.org/search?se...table&arch=any
I cant login in as root so how would i install as root , I assume some way through the terminal ? su ??
Am completely new to linux

thanks
Wrath
 
Old 05-27-2010, 01:58 PM   #27
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
What do the following return (when you're in ~/cod2)?:
Code:
ls -l cod2_lnxded
file cod2_lnxded
Sorry mate must have missed your post somehow but here it is at any rate

Code:
gunz@gunz-desktop:~/cod2$  ls -l
total 11032
-rwxr-xr-x 1 gunz gunz 1318204 2006-06-23 08:36 cod2_lnxded
-rw-r--r-- 1 gunz gunz 1703936 2005-10-06 23:19 CoD2MP_s.exe
-rw-r--r-- 1 gunz gunz 3139067 2005-10-06 23:16 COD2SP_s.exe
-rw-r--r-- 1 gunz gunz  921656 2005-09-02 06:01 cod.bmp
-rw-r--r-- 1 gunz gunz  109976 2005-09-07 06:00 codlogo.bmp
-rw-r--r-- 1 gunz gunz 1851392 2005-10-06 23:18 gfx_d3d_mp_x86_s.dll
-rw-r--r-- 1 gunz gunz 1847296 2005-10-06 23:20 gfx_d3d_x86_s.dll
-rw-r--r-- 1 gunz gunz    2271 2005-10-02 20:43 localization.txt
drwxr-xr-x 3 gunz gunz    4096 2010-05-26 23:47 main
drwxr-xr-x 2 gunz gunz    4096 2005-10-07 02:44 miles
-rw-r--r-- 1 gunz gunz  370688 2005-08-11 06:20 mss32.dll
drwxr-xr-x 6 gunz gunz    4096 2010-05-26 23:15 pb
-rw-r--r-- 1 gunz gunz    6450 2006-06-14 18:15 README.linux
gunz@gunz-desktop:~/cod2$ ls -l cod2_lnxded
-rwxr-xr-x 1 gunz gunz 1318204 2006-06-23 08:36 cod2_lnxded
gunz@gunz-desktop:~/cod2$ file cod2_lnxded
cod2_lnxded: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped
 
Old 05-27-2010, 02:20 PM   #28
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by wrathlonz View Post
I cant login in as root so how would i install as root , I assume some way through the terminal ? su ??
Am completely new to linux

thanks
Wrath
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
 
Old 05-27-2010, 02:52 PM   #29
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
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:~$
thanks
Wrath
 
Old 05-27-2010, 03:04 PM   #30
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
in this case sudo is not set up on your account,
use su instead

just type
su

and it will prompt for the root password
all being well that will land you at the root shell for that session
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing php extension directory: where is "./" directory? Kreshna Linux - Software 1 11-22-2009 03:31 AM
library missing:No such file or directory error(all files and paths are set properly venky.kv Linux - Newbie 3 03-09-2009 10:49 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM
SOURCE directory is missing m2azer Fedora 2 09-19-2004 12:26 AM
kde 3.1 compiling error, missing file or directory johnva Linux - Software 7 07-03-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration