*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1]
Print
Author Topic: "command not found" reply in terminal after install of mc, vlc  (Read 8553 times)

"command not found" reply in terminal after install of mc, vlc

filosofic
Commenter

Posts: 7


Let me think about it.


April 29, 2008, 08:28:43 PM

I can't figure this out.  In a terminal I type

su
yum install mc

all goes well.  mc even runs.  I shut down, come back the next day, log into a terminal, type mc and get "command not found".
I try
su
mc
"command not found"
I try
su -
and
su -l
and get "command not found"

The same thing happened when I installed vlc.

I try to reinstall mc and get the message
Package mc - 1:4.6.1a-45.......... is already installed.
Then type mc again and get
bash:  mc:  command not found

With vlc, I can find the files if I start a terminal and type
ls -a
and there is .vlc so cd .vlc and ls -a yields
.  ..  cache  vlcrc
and nothing to start the programme.

I understand that in linux I have to be in the same file as the program -- but where is it then and why did it work before -- when I first installed it, logged out, logged back in, and tried it... both mc and vlc worked fine.  Seems after I shutdown and come back that they are gone.

I'm running 656 all up to date.
I'm no linux expert but I do know a bit.  This has me stumped. 
Any help or advice much appreciated.
I'd love to stay with the sugar o/s and see how it develops, but right know i'm thinking xfce might be better.
Logged

si hoc legere scis nimium eruditionis habes

#1 Re: "command not found" reply in terminal after install of mc, vlc

filosofic
Commenter

Posts: 7


Let me think about it.


April 29, 2008, 08:43:06 PM

To find mc and vlc as root I did
# find / -type f -name mc -print
and got
/versions/run/656/usr/bin/mc
find:  Filesystem loop detedted; '/versions/run/8b101c1402396e8ebf1180aa8a5b4ebf' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.

cd to /versions/run/656/usr/bin
and typing
mc
and ./mc
and any other combos also yields
"command not found"

I hope I'm doing something obviously wrong.
Logged

si hoc legere scis nimium eruditionis habes

#2 Re: "command not found" reply in terminal after install of mc, vlc

CatMoran
Senior Contributor
**
Posts: 168


WWW
April 30, 2008, 06:48:42 AM

You're not doing anything wrong with your find command (at least, not that I can see), there's a bug that causes find to misbehave if you start your search at root. There are two workarounds:

find / -name [filename] 2>/dev/null

and

find . -path ./versions/run -prune -o -name [filename] -print

Replace [filename] with mc.

I don't remember why, but sometimes one workaround will work when the other won't. So be sure to try both if the first one doesn't work.
Logged

#3 Re: "command not found" reply in terminal after install of mc, vlc

filosofic
Commenter

Posts: 7


Let me think about it.


June 02, 2008, 12:18:15 PM

Update:

After running XFCE on the XO for the past few weeks, I decided to go back and see how 703 works.  After a clean install, and an install of mc, vlc and firefox, all three programs worked after I logged out as root and typed in mc, vlc or firefox into the bash shell terminal.

Now after a restart, I go and try the same.  And get the same error again.
I find the mc files in /usr/bin/ and cd there and try again, but nothing works.

What am I doing wrong?  Anyone?  Any ideas?
Logged

si hoc legere scis nimium eruditionis habes

#4 Re: "command not found" reply in terminal after install of mc, vlc

teapot
OLPC News Forum Expert
****
Posts: 662



WWW
June 02, 2008, 01:44:14 PM

Update:

After running XFCE on the XO for the past few weeks, I decided to go back and see how 703 works.  After a clean install, and an install of mc, vlc and firefox, all three programs worked after I logged out as root and typed in mc, vlc or firefox into the bash shell terminal.

Now after a restart, I go and try the same.  And get the same error again.
I find the mc files in /usr/bin/ and cd there and try again, but nothing works.

What am I doing wrong?  Anyone?  Any ideas?

cd into a directory does not affect how the command works -- as opposed to Windows, current directory is not, and is not supposed to be in the executables search path.

what is the output of echo $PATH and ldd /usr/bin/mc ?
Logged

#5 Re: "command not found" reply in terminal after install of mc, vlc

filosofic
Commenter

Posts: 7


Let me think about it.


June 02, 2008, 09:15:26 PM

Output of 'echo $PATH' is:
/usr/local/sbin:/usr/sbin:/sbin:/home/olpc/Activities/Terminal.activity/bin:/usr/bin:/bin
and 'lld /ur/bin/mc' yields:
No such file or directory

And this is interesting:
After su
and
find / -type f -name mc -print
I get
/versions/run/703/usr/bin/mc
find:  Filesystem loop detected; `/versions/run/9cdccf69318f9946cf00aacc05deb73d' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.

a similar problem posted here:  http://www.olpcnews.com/forum/index.php?topic=198.msg16477

Then when I cd to /versions/run/703/usr/bin/mc
and type
./mc
I get
./mc:  error while loading shared libraries:  libslang.so.2:  cannot open shared object file:  No such file or directory

Substitute vlc for mc in the find query and bash yields the same thing.

I know this must be a more common problem that it seems as when I google "olpc "command not found"", I get 1770 hits -- and I've looked through at least 10 of the first pages for anything promising.

And
yum install libslang.so.2
yeilds
...Requested dep:  libslang.so.2 is provided by installed package
Nothing to do

Any suggestions?

Would like to stay with Sugar but if I cannot even get mc to run in a terminal, I'm in trouble.

Any ideas greatly appreciated.

Logged

si hoc legere scis nimium eruditionis habes

#6 Re: "command not found" reply in terminal after install of mc, vlc

teapot
OLPC News Forum Expert
****
Posts: 662



WWW
June 02, 2008, 09:28:32 PM

Quote
ldd /usr/bin/mc
and 'lld /ur/bin/mc' yields:
No such file or directory

No wonder -- it's two typos in the same command line.

Logged

#7 Re: "command not found" reply in terminal after install of mc, vlc

filosofic
Commenter

Posts: 7


Let me think about it.


June 02, 2008, 09:34:06 PM

Sorry, typos were in my copying them to another computer (with which I am writing this) from the OLPC. 

They were ok in the olpc terminal; and I checked again to make sure:

ldd /usr/bin/mc
still yields
ldd:  /usr/bin/mc:  No such file or directory

Argggggggh!
Logged

si hoc legere scis nimium eruditionis habes

#8 Re: "command not found" reply in terminal after install of mc, vlc

teapot
OLPC News Forum Expert
****
Posts: 662



WWW
June 02, 2008, 11:11:35 PM

Sorry, typos were in my copying them to another computer (with which I am writing this) from the OLPC. 

They were ok in the olpc terminal; and I checked again to make sure:

ldd /usr/bin/mc
still yields
ldd:  /usr/bin/mc:  No such file or directory

Argggggggh!

Something is SERIOUSLY WRONG then, because you obviously had /versions/run/version/usr/bin/mc file.

I recommend to reinstall everything (possibly using autoreinstallation image on a USB drive as described in http://wiki.laptop.org/go/Autoreinstallation_image ), then install all additional software from that point.
Logged

#9 Re: "command not found" reply in terminal after install of mc, vlc

filosofic
Commenter

Posts: 7


Let me think about it.


June 03, 2008, 12:17:37 PM

Problems persist.
Did a secure upgrade as found at:  http://wiki.laptop.org/go/Secure_Upgrade
with 703.  The upgrade from the USB wipes the whole drive clean (or so I think).

Then as root, I: olpc-update 703

Then as root:  yum update and yum upgrade
Then yum install mc
Exit root
In Bash, I type: mc
and Midnight Commander is up and running.
Reboot, go to the shell and as user type mc
"command not found"

Try it again as su
"command not found"

I try
find / -type f -name mc -print
and get
/versions/run/703/usr/bin/mc
find:  Filesystem loop detected; `/versions/run/9cdccf69318f9946cf00aacc05deb73d' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy

So I cd to /versions/run
and find two directories:
.  ..  703  9cdccf69318f9946cf00aacc05deb73d

So I look at /versions/run/703/usr/bin
and find mc

So I type mc
command not found

Type:  .mc
command not found

Type:  ./mc
./mc:  error while loading shared libraries:  libsland.so.2:  cannot open shared object file: No such file or directory

I then try the same thing under directory 9cdccf69318f9946cf00aacc05deb73d
as olpc$ and as root#
and get either "command not found" or "No such file or directory"

I am beginning to suspect there must be a hardware problem or that upon reboot, certain files are deleted.  But if I cannot get this to work, then I wouldn't be able to install any non-olpc software like mc. vlc or firefox.  And if I can't do that, I might as well use Xfce.

I'm not too sweet on this Sugar.  It's more sweat than sweet.

If anyone can see what either I'm doing wrong, please let me know.


Logged

si hoc legere scis nimium eruditionis habes

#10 Re: "command not found" reply in terminal after install of mc, vlc

tangomike
Contributor
*
Posts: 77


June 04, 2008, 07:18:35 AM

Well, the first possibility is that mc is not in your path. To see your path type

echo $PATH

and press enter. The directory where mc is should be in the resulting list. If not, then try copying mc to a directory in your path, say /usr/bin

Then type

mc

and press enter.

Logged

#11 Re: "command not found" reply in terminal after install of mc, vlc

filosofic
Commenter

Posts: 7


Let me think about it.


June 04, 2008, 10:43:45 AM

After new secure reinstall or 703, output of # echo $PATH is:
/usr/local/sbin:/usr/sbin:/sbin:/sur/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

After find / -type f -name mc -print
I get
/versions/run/703/usr/bin/mc
find:  Filesystem loop detected; `/versions/run/9cdccf69318f9946cf00aacc05deb73d' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.

And indeed, in /versions/run I have two directories:
. ..  703 9cdccf69318f9946cf00aacc05deb73d

When ' du -hsx '
I find 703 is 701M
and 9cdccf69318f9946cf00aacc05deb73d is 644M

I find mc in both these files in each /usr/bin
but invoking mc .mc or ./mc as user or root yields "command not found" or error while loading shared libraries:  libsland.so.2:  cannot open shared object file: No such file or directory

So I try
cp /versions/run/703/usr/bin/mc /usr/bin
and get the same error
"error while loading shared libraries:  libsland.so.2:  cannot open shared object file: No such file or directory"

I am still baffled.

 Huh


Logged

si hoc legere scis nimium eruditionis habes
Pages: [1]
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 29
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 14
Total: 14