LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-22-2010, 02:32 PM   #1
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Rep: Reputation: 17
Question Question about PATH and Command Not Found


I'm sure there is something here that I'm missing with this issue, but here goes anyway.

OS: Slamd64
Kernel: 2.6.29.6.Mine
echo $SHELL: tcsh
WindowManager: Fluxbox ver. 1.1.1

Problem: (but seems to be consistent with other installed applications)
  • Install 'Eterm' for Slamd64, everything compiled from the Slamd64 repository
    successful install no problems with configure, no missing libraries, make, or make install.
  • -- run ldconfig - just in case
    no failures
  • -- run su -c 'updatedb' - just in case
    - no failures
  • -- [pts/1][14:01][me@here][~]Eterm
    - [pts/1][14:01][me@here][~] Command Not Found
  • -- run slocate Eterm | less
    <snip>...
    /usr/bin/Eterm
    /usr/man/man1/Eterm.1.gz
    /usr/local/lib/libEterm-0.9.5.so
    /usr/local/lib/libEterm.so
    /usr/local/lib/libEterm.la
    /usr/local/lib/libEterm.a
    /usr/local/bin/Eterm
    /usr/local/man/man1/Eterm.1
    /usr/local/share/Eterm
    <snip>...
  • [pts/1][14:01][me@here][~]/usr/bin/Eterm
    -[pts/1][14:01][me@here][~] Command Not Found
  • [pts/1][14:01][me@here][~]/usr/local/bin/Eterm
    success - Eterm pops up on my screen
  • [pts/1][14:01][me@here][~] ln -s /usr/bin/Eterm Eterm
    -[pts/1][14:01][me@here][~] Command Not Found
  • Remove previous link and create another one
    [pts/1][14:01][me@here][~] ln -s /usr/local/bin/Eterm Eterm
    success - Eterm pops up on my screen

So I'm trying to figure out what I'm doing wrong and this seems to be consistent with installing additional application. I used Eterm as an example so you can see what I'm doing or what I'm doing wrong.

Any guidance or help would be greatly appreciated or a reference to another post here that I didn't look for that has a possible solution.

Thanks in advance.

Last edited by Imyrryr; 05-22-2010 at 02:33 PM. Reason: bad spelling
 
Old 05-22-2010, 02:53 PM   #2
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
What's the output of

Code:
echo $PATH
?
 
Old 05-22-2010, 03:04 PM   #3
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Original Poster
Rep: Reputation: 17
echo $PATH
:/usr/local/bin
:/usr/bin
:/bin
:/usr/games
:/usr/lib/java/bin
:/usr/lib/jre/bin
:/usr/lib64/java/bin
:/usr/lib/64/kde4/libexec
:/opt/kde3/lib64/qt3/bin
:/opt/kde3/bin
:/usr/lib64/qt/bin
:/usr/share/texmf/bin
:.
 
Old 05-22-2010, 03:23 PM   #4
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
What's the output of 'file /usr/bin/Eterm /usr/local/bin/Eterm'?

Adam
 
Old 05-22-2010, 03:35 PM   #5
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Original Poster
Rep: Reputation: 17
file /usr/local/bin/Eterm
/usr/local/bin/Eterm: ELF 64bit LSB executable, x86_64, version 1 (SYSV) dynamically linked (user shared libs), not stripped

N.B.: I "su -c 'removepkg Eterm.0.9'" the old Eterm.tgz, as that was compiled from linuxpackages.org not from the slamd64 repository. so now 'file /usr/bin/Eterm' returns /usr/bin/Eterm: cannot open '/usr/bin/Eterm/' (no such file or directory). Problem still persists with 'usr/local/bin' version.

Last edited by Imyrryr; 05-22-2010 at 03:37 PM.
 
Old 05-22-2010, 03:39 PM   #6
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by Imyrryr View Post
Problem still persists with 'usr/local/bin' version.
What problem is that? According to your original post, Eterm worked fine when you ran /usr/local/bin/Eterm.

Adam
 
Old 05-22-2010, 03:44 PM   #7
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Original Poster
Rep: Reputation: 17
-- [pts/1][14:01][me@here][~]Eterm
- [pts/1][14:01][me@here][~] Command Not Found

[pts/1][14:01][me@here][~]/usr/local/bin/Eterm
success - Eterm pops up on my screen

[pts/1][14:01][me@here][~] ln -s /usr/local/bin/Eterm Eterm
[pts/1][14:01][me@here][~] Eterm
success - Eterm pops up on my screen

the question is - why does it 'not' run from my "~" folder unless I symlink to it or if I put in the full path to it?

Last edited by Imyrryr; 05-22-2010 at 03:45 PM. Reason: Fixed command sequence
 
Old 05-22-2010, 03:48 PM   #8
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Is the Eterm in /usr/bin a broken symlink?
 
Old 05-22-2010, 03:54 PM   #9
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Original Poster
Rep: Reputation: 17
I removed the /usr/bin/Eterm.

I found it was from when I tried to install Eterm.tgz from linuxpackages.org. Not from the slamd64 repository

--------------
how about this one, it's not so convoluted
I downloaded boswars - untar'd it
no make or configure required.

rwxr-xr-x 1 me me 1.9M 2010-04-18 boswars*

[pts/1][17:02][me@here][~/usr/gamez/boswars-2.6.1-linux] boswars
boswars: Command not found.
[pts/1][17:02][me@here][~/usr/gamez/boswars-2.6.1-linux] ./boswars
./boswars: Command not found.

Last edited by Imyrryr; 05-22-2010 at 05:15 PM. Reason: Added some clarity to the post, I hope!
 
Old 05-22-2010, 05:26 PM   #10
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Is boswars 32-bit or 64-bit? Is your system multilib?

Adam
 
Old 05-22-2010, 05:45 PM   #11
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Original Poster
Rep: Reputation: 17
Now that's a good question; how can I make the distinction if the system is 'multilib' or not?

The game is multi-platform. Not exactly sure if it's 32 or 64, but I'm guessing it's 32bit.
 
Old 05-22-2010, 06:11 PM   #12
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
With slackware 13.0 you would know if it was multilib because you would have actively had to make it that way. I'm not sure if that's true with slamd64, though.

Adam
 
Old 05-22-2010, 06:25 PM   #13
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
how can I make the distinction if the system is 'multilib' or not?
Slamd64 is a multilib system.
 
Old 05-22-2010, 06:30 PM   #14
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Well that answers that. Guess that's not the problem, then.

EDIT: Well, unless you built your own kernel and removed 32-bit compatibility.

Adam
 
Old 05-22-2010, 10:19 PM   #15
koenigdavidmj
Member
 
Registered: Oct 2009
Posts: 73

Rep: Reputation: 25
$PATH is ignored by tcsh; it uses an array variable $path instead. Imyrryr, please echo $path for us.
 
  


Reply



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
Command not found and a proper path variable thelonesquirrely Linux - General 7 03-18-2009 06:28 PM
Newbie - OSX "command not found" Path issue Pinball2k Other *NIX 11 10-19-2008 04:00 PM
command in $PATH isn't found jon23d Linux - Newbie 2 06-22-2006 12:09 AM
path problem - startkde :command not found batfastad Linux - Newbie 7 11-18-2004 07:12 PM
command path question tied2 Linux - Newbie 4 06-24-2002 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:06 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
Open Source Consulting | Domain Registration