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.
Apologies if this is a silly question, I have done a LOT of searching and fiddling around but cannot find an answer.
Basically I have installed lynx but cannot run it. Please see my latest attempt:
/opt/bin # ls -l lynx
-rwxr-xr-x 1 root root 1140456 Jan 20 2008 lynx
/opt/bin # ./lynx
/bin/sh: ./lynx: not found
As you can see I can see the lynx file and it looks like I have execute permissions (to my newb eyes), but when I try to run it I get "not found". Thanks in advance for any comments whatsoever, even insults would be welcome at the moment
Machine: Freecom Network Drive Pro
Distro: OpenFSG
Based on your command-line output you are logged in as root and have lynx installed in /opt/bin and your lynx is owned by root. All in all it should work.
I had once problems accessing web files by the Apache browser due to some SELinux settings on the directory containing those files, which was solved by copying the files to a new directory and replacing the old directory with the new one. It was a weird solution to a weird problem.
In your case it seems easier to install lynx properly in /usr/bin uing some package manager.
Try executing it from your /home/username directory. Type ~ then press enter, now type lynx. If that doesn't work try /opt/bin/lynx. If both ways fail, it is most likely because /opt/bin is not in your path. Type env and look for a line like this: PATH=/opt/bin.
Last edited by {BBI}Nexus{BBI}; 11-28-2008 at 10:22 AM.
Reason: Additional info added
~ is not a command. But it means "my home".
So typing just ~ is like typing /home/.users/admin which also isn't a command. So you get "Permission denied "
cd is a command. It means change directory to ....
so you can cd ~ or cd /home/.users/admin
lynx doesn't work because as {BBI}Nexus{BBI} said, /opt/bin/ is not in root's path (and you were trying as the root user)
Please read {BBI}Nexus{BBI}'s post #5 again, and try /opt/bin/lynx
Apologies I misquoted, I meant to say that I had tried salter's suggestion. I have also tried {BBI}Nexus{BBI} too:
/ # /opt/bin/lynx
/bin/sh: /opt/bin/lynx: not found
Means you do not have the file command installed, or it is not on your PATH. This is unusual IMHO, but no matter.
In your listing of /opt/bin/ lynx is there, and is executable by all.
So it should work. But it doesn't.
What, please is the output of env
?
Is your filesystem corrupted? have you tried running fsck ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.