LinuxQuestions.org
Review your favorite Linux distribution.
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 07-16-2005, 02:30 PM   #1
AndyMCR
Member
 
Registered: Apr 2005
Location: Manchester, UK
Distribution: Slackware Current
Posts: 39

Rep: Reputation: 15
Starting program with ./


Hi,

I've just re-installed Slack & got Enlightenment running. However, when I go to /usr/local/e17/bin I cannot exec a file by just typing evidence (as I did on my last install) , I now have to use ./evidence

Is there an easy fix, I've got a feeling it may be a PATH problem.

Any help appreciated

Andy
 
Old 07-16-2005, 02:33 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well, first of all, are you running as root? The current directory is not in root's PATH for security reasons.
 
Old 07-16-2005, 02:35 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If you are running as a normal user, you can add ./ to the path by creating the file ".bash_profile" in your home directory (if it doesn't already exist) and putting the following line into it:

export PATH=$PATH:./
 
Old 07-16-2005, 02:41 PM   #4
AndyMCR
Member
 
Registered: Apr 2005
Location: Manchester, UK
Distribution: Slackware Current
Posts: 39

Original Poster
Rep: Reputation: 15
Yep, that solved it, thank you very much.

Andy
 
Old 07-16-2005, 03:53 PM   #5
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Whenever I have the executable stored in an odd location like that, I normally put a symlink to it in /usr/local/bin so that I can call it from anywhere.
 
Old 07-16-2005, 05:31 PM   #6
AndyMCR
Member
 
Registered: Apr 2005
Location: Manchester, UK
Distribution: Slackware Current
Posts: 39

Original Poster
Rep: Reputation: 15
How do I create a symlink?

I issued these commands in the build script:

export PATH=$PATH:/usr/local/e17/bin"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/e17/lib"

but it doesn't seem to work for my next login (i.e the $PATH isn't updated). Is there a file where these are stored?

Andy
 
Old 07-16-2005, 05:57 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
man ln
Basically it's
ln -s /path/to/real/thing /path/to/dir/in/$PATH/.
 
  


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
Starting program in background jdhar Linux - Software 1 02-21-2005 02:12 PM
Starting to program in C snoopyswiss Programming 4 11-04-2004 09:38 PM
Starting a program with a given process id DropSig Linux - Newbie 1 09-29-2004 08:41 PM
Starting to program ;) Need a little help gamehack Programming 1 12-29-2003 09:45 AM
Starting program with terminal TazLinux Linux - General 8 02-26-2003 07:16 AM

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

All times are GMT -5. The time now is 02:47 AM.

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