LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No such file or directory what am i missing here ? (https://www.linuxquestions.org/questions/linux-newbie-8/no-such-file-or-directory-what-am-i-missing-here-810253/)

AlucardZero 05-27-2010 05:29 PM

Yeah, sorry, sudo takes your user password usually. If you're not allowed to sudo, you must be able to su (with the root password), else how could you get anything done? Or is this not a machine you have root on?

Shadow_7 05-27-2010 05:37 PM

$ su
(password)
# apt-get install libstdc++5
# exit
$ exit

Note that password is CaSe sensitive so make sure you don't have the capslock key on or something. And for laptops make sure you're not in some Fn mode that puts the keypad on your qwerty layout. Unless that was the mode you were in when you typed the original password. Not trying to confuse the matter, but sometimes stuff happens. And debian isn't always good about grabbing dependencies. sun's java requires libstdc++5 as well, even though libstdc++6 is probably installed.

su requires the user to be in the wheel group on some distros. I'm not sure if that's a current requirement with current debian. You might be able to login as root at boot time as a fallback. Not advisable if you boot into a gui mode. I tend to avoid that by not installing a display manager (kdm, gdm, wdm, xdm, ...), or uninstalling them, or reconfiguring, or disabling. Many means to an end. Otherwise an xterm does good enough.

chrism01 05-27-2010 07:00 PM

In order to get root's environment use a '- with the su cmd thus

su -
<root passwd >

you may need that to ensure the right cmds are available

wrathlonz 05-27-2010 08:45 PM

Quote:

Originally Posted by dasy2k1 (Post 3983357)
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

Nice thanks seems to have worked , thanks to all that are contributing I really do appreciate it . Heres the output

Code:

gunz@debian:~$ su
Password:
debian:/home/gunz# apt-get install libstdc++5
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  google-chrome-stable: Depends: libgconf2-4 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a    solution).
debian:/home/gunz#
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  gconf2-common libgconf2-4 libidl0 liborbit2
The following NEW packages will be installed:
  gconf2-common libgconf2-4 libidl0 liborbit2
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 2166kB of archives.
After this operation, 7909kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org lenny/main gconf2-common 2.22.0-1 [1532kB]
Get:2 http://ftp.us.debian.org lenny/main libidl0 0.8.10-0.1 [95.6kB]
Get:3 http://ftp.us.debian.org lenny/main liborbit2 1:2.14.13-0.1 [272kB]
Get:4 http://ftp.us.debian.org lenny/main libgconf2-4 2.22.0-1 [266kB]
Fetched 2166kB in 4s (527kB/s)
Selecting previously deselected package gconf2-common.
(Reading database ... 87826 files and directories currently installed.)
Unpacking gconf2-common (from .../gconf2-common_2.22.0-1_all.deb) ...
Selecting previously deselected package libidl0.
Unpacking libidl0 (from .../libidl0_0.8.10-0.1_amd64.deb) ...
Selecting previously deselected package liborbit2.
Unpacking liborbit2 (from .../liborbit2_1%3a2.14.13-0.1_amd64.deb) ...
Selecting previously deselected package libgconf2-4.
Unpacking libgconf2-4 (from .../libgconf2-4_2.22.0-1_amd64.deb) ...
Setting up gconf2-common (2.22.0-1) ...

Creating config file /etc/gconf/2/path with new version
Setting up libidl0 (0.8.10-0.1) ...
Setting up liborbit2 (1:2.14.13-0.1) ...
Setting up libgconf2-4 (2.22.0-1) ...
Setting up google-chrome-stable (5.0.375.55-r47796) ...
Processing triggers for menu ...
debian:/home/gunz#

Now were talking , man that was cool ! Excuse my excitement but very little has worked and that was exciting for me !

Now to figure out where they have to go the files linked by the author of the linux readme.I examined the /lib directory and it has two files named the same as the files supplied but different sized files , which means that if I were to drop them in the /lib directory they would overwrite the existing files which resulted in a negative way the first time I tried it . Heres the exert from the readme
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)"

Tried to do some research on libraries and "dynamic linker" but its way beyond my comprehension as of yet , once again big thanks to all that are contributing this is awesome !

thanks
Wrath

exvor 05-27-2010 10:24 PM

At this point I would just try and run the server again and see if it gives you library errors. If it does it may just be safer to modify the library search path instead.

wrathlonz 05-28-2010 10:15 AM

Quote:

Originally Posted by exvor (Post 3983698)
At this point I would just try and run the server again and see if it gives you library errors. If it does it may just be safer to modify the library search path instead.

Same library error
Code:

./cod2_lnxded: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
debian:/home/gunz/cod2#

Now with little knowledge i have ill try to explain what i think is happening . with the apt-get which worked it retrieved and installed the wrong files as I believe that the files i need and are posted with url in the linux readme are custom created lib files that some gentleman created specifically for this binary "cod2_lnxded". I have downloaded the files provided but cannot place them where they need to be as I dont understand and cant figure where they are to go . There are five files that are provided . Problem 1 is I would have to do it through the terminal as I dont have write permission for any of the root dir's . Even then I would have to know where they need to be in order , and these are the readme authors words
Code:

"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)."

At a lost here as i dont understand exactly where these go and how to get them there
Dynamic linker will see it ???

thanks
Wrath

exvor 05-28-2010 11:30 AM

You are getting the error actually because they used an older version of gcc's library for the program. Gcc version is now 4.x and they used gcc 3.x.

You could try just copying the files into the /usr/local/lib directory.

wrathlonz 05-29-2010 06:11 AM

write access denied
 
Quote:

Originally Posted by exvor (Post 3984402)
You are getting the error actually because they used an older version of gcc's library for the program. Gcc version is now 4.x and they used gcc 3.x.

You could try just copying the files into the /usr/local/lib directory.

denied write access , so i belive i have to do it in the terminal with su permissions . I am looking about on how to do that , guessing that i would have to use the mv command but not sure about the file names and how to input the path to where they would have to go .

thanks again
Wrath

Shane64 05-30-2010 11:39 PM

Ok folks first of all I know absolutely nothing about Puntu by Bauer or any of the Linux commands. I am a poor person so funds are limited but Iwas wondering this. I enter the command: cd music and get there is no such file or directory. Now music is a blue lettered directory. What am I not understanding here. Is there an online tutorial that I need to be doing first with the terminal? Thanks for yall's help in advance.

Nylex 05-31-2010 12:00 AM

Quote:

Originally Posted by Shane64 (Post 3986975)
Ok folks first of all I know absolutely nothing about Puntu by Bauer or any of the Linux commands. I am a poor person so funds are limited but Iwas wondering this. I enter the command: cd music and get there is no such file or directory. Now music is a blue lettered directory. What am I not understanding here. Is there an online tutorial that I need to be doing first with the terminal? Thanks for yall's help in advance.

Is the directory name capitalised differently to how you typed it? File and directory names are case sensitive in Linux, so "Music" is not the same as "music" or "MUSIC", for example.

As for tutorials, I'm not sure. Maybe have a look at this. There's a lot of info there on various things.

exvor 06-01-2010 06:50 PM

Quote:

Originally Posted by wrathlonz (Post 3985200)
denied write access , so i belive i have to do it in the terminal with su permissions . I am looking about on how to do that , guessing that i would have to use the mv command but not sure about the file names and how to input the path to where they would have to go .

thanks again
Wrath

Yes you would need to become the super user to be able to copy the files into that directory thus the su command. You could either just copy them with the cp command or move them with the mv command.


All times are GMT -5. The time now is 05:34 AM.