LinuxQuestions.org
Help answer threads with 0 replies.
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-27-2010, 06:29 PM   #31
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604

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?
 
Old 05-27-2010, 06:37 PM   #32
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
$ 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.
 
Old 05-27-2010, 08:00 PM   #33
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
 
Old 05-27-2010, 09:45 PM   #34
wrathlonz
LQ Newbie
 
Registered: May 2010
Location: hills of central Massacusetts
Posts: 17

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

Last edited by wrathlonz; 05-27-2010 at 09:50 PM. Reason: thinking
 
Old 05-27-2010, 11:24 PM   #35
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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.
 
Old 05-28-2010, 11:15 AM   #36
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
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

Last edited by wrathlonz; 05-28-2010 at 11:19 AM.
 
Old 05-28-2010, 12:30 PM   #37
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

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

Original Poster
Rep: Reputation: 0
write access denied

Quote:
Originally Posted by exvor View Post
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
 
Old 05-31-2010, 12:39 AM   #39
Shane64
LQ Newbie
 
Registered: May 2010
Location: Lubbock, Texas
Distribution: Bauer Puntu
Posts: 2

Rep: Reputation: 0
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.
 
Old 05-31-2010, 01:00 AM   #40
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Shane64 View Post
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.
 
Old 06-01-2010, 07:50 PM   #41
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Quote:
Originally Posted by wrathlonz View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04: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 11:49 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-04-2006 12:08 AM
SOURCE directory is missing m2azer Fedora 2 09-19-2004 01:26 AM
kde 3.1 compiling error, missing file or directory johnva Linux - Software 7 07-03-2003 05:07 PM


All times are GMT -5. The time now is 04:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration