Re: [SLE] Why Isn't "ln" Recognized?
Robert Paulsen wrote:
On Friday 03 September 2004 08:03 pm, doc wrote:
I am getting an error that ln is not recognized.
Why might that be, please?
What is the result of each of these commands...
which ln
Nada
whereis ln
Nada
echo $PATH
PATH://usr/java/jdk1.3.1_13/bin:.
Do you have coreutils installed? rpm -q coreutils
-bash: rpm: command not found -- Thanks! & 73, doc kd4e West Central Florida 100% Linux. Suse 9.1 Drake, Hallicrafters, Heathkit, TenTec, Yaesu Radio Life: http://www.gospelcom.net/twr/ Linux-Incompatible hardware is defective! USA Pres. Election 2004: http://www.rnc.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- doc
Robert Paulsen wrote:
On Friday 03 September 2004 08:03 pm, doc wrote:
I am getting an error that ln is not recognized.
Why might that be, please?
What is the result of each of these commands...
which ln
Nada
whereis ln
Nada
echo $PATH
PATH://usr/java/jdk1.3.1_13/bin:.
Do you have coreutils installed? rpm -q coreutils
-bash: rpm: command not found
looks like your PATH is seriously screwed Most likely the root cause is that in your ~/.bashrc you have put something like set PATH PATH://usr/java/jdk1.3.1_13/bin:. change that such that the second PATH is $PATH. That is something like set PATH $PATH://usr/java/jdk1.3.1_13/bin:. And, relaunch a x terminal. you should be OK. Osho _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush
Osho GG wrote:
--- doc
wrote: Robert Paulsen wrote:
On Friday 03 September 2004 08:03 pm, doc wrote:
I am getting an error that ln is not recognized.
Why might that be, please?
What is the result of each of these commands...
which ln
Nada
whereis ln
Nada
echo $PATH
PATH://usr/java/jdk1.3.1_13/bin:.
Do you have coreutils installed? rpm -q coreutils
-bash: rpm: command not found
looks like your PATH is seriously screwed
Most likely the root cause is that in your ~/.bashrc you have put something like
set PATH PATH://usr/java/jdk1.3.1_13/bin:.
change that such that the second PATH is $PATH. That is something like
set PATH $PATH://usr/java/jdk1.3.1_13/bin:.
And, relaunch a x terminal. you should be OK.
Osho
Find Files locates two /.bashrc and both look like this: # Sample .bashrc for SuSE Linux # Copyright (c) SuSE GmbH Nuernberg # There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells # read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all # settings made here will also take effect in a login shell. # # NOTE: It is recommended to make language settings in ~/.profile rather than # here, since multilingual X sessions would not work properly if LANG is over- # ridden in every subshell. # This might be helpful for Linux newbies who previously used DOS... test -f /etc/profile.dos && . /etc/profile.dos # Some applications read the EDITOR variable to determine your favourite text # editor. So uncomment the line below and enter the editor of your choice :-) #export EDITOR=/usr/bin/vim #export EDITOR=/usr/bin/mcedit # For some news readers it makes sense to specify the NEWSSERVER variable here #export NEWSSERVER=your.news.server # If you want to use a Palm device with Linux, uncomment the two lines below. # For some (older) Palm Pilots, you might need to set a lower baud rate # e.g. 57600 or 38400; lowest is 9600 (very slow!) # #export PILOTPORT=/dev/pilot #export PILOTRATE=115200 test -s ~/.alias && . ~/.alias -- Thanks! & 73, doc kd4e West Central Florida 100% Linux. Suse 9.1 Drake, Hallicrafters, Heathkit, TenTec, Yaesu Radio Life: http://www.gospelcom.net/twr/ Linux-Incompatible hardware is defective! USA Pres. Election 2004: http://www.rnc.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* doc
echo $PATH
PATH://usr/java/jdk1.3.1_13/bin:.
Do you have coreutils installed? rpm -q coreutils
-bash: rpm: command not found
You have butchered your path. Did you just install java?? see if /etc/profile exists how long since you booted are you in a bash window in kde or at a console -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
doc wrote:
Robert Paulsen wrote:
On Friday 03 September 2004 08:03 pm, doc wrote:
I am getting an error that ln is not recognized.
Why might that be, please?
What is the result of each of these commands...
which ln
Nada
whereis ln
Nada
echo $PATH
PATH://usr/java/jdk1.3.1_13/bin:.
Do you have coreutils installed? rpm -q coreutils
-bash: rpm: command not found
Your PATH is very short, try ". /etc/profile", that's a space after the ".". If that doesn't work, set up your paths in ~/.bashrc then ". ~/.bashrc". It will pick up the paths right away and when next you boot up. my .bashrc export PATH=$PATH:/opt/gnome/bin:/opt/gnome2/bin:/opt/kde3/bin:/usr/local/mybin:/usr/local/bin:/usr/local/sbin:/usr/lib/java/jre/bin:/usr/lib/qt3/bin:/usr/l ocal/apache-ant-1.6.2beta1/dist/bin:/usr/lib/java/bin:/usr/games You should add /bin:/usr/bin:/sbin:/usr/sbin and any others you can think of in ~/.bashrc. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer =====LINUX ONLY USED HERE=====
I rebooted and all is well with the bollixed PATH. Thanks for the assist with troubleshooting! Now on to test Java and the Java plugin with Mozilla. -- Thanks! & 73, doc kd4e West Central Florida 100% Linux. Suse 9.1 Drake, Hallicrafters, Heathkit, TenTec, Yaesu Radio Life: http://www.gospelcom.net/twr/ Linux-Incompatible hardware is defective! USA Pres. Election 2004: http://www.rnc.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
participants (4)
-
doc
-
Osho GG
-
Patrick Shanahan
-
Sid Boyce