LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2007, 05:26 AM   #1
DMeerholz
LQ Newbie
 
Registered: Jun 2007
Posts: 22

Rep: Reputation: 15
Global Paths


Hi,

Could someone tell me where the file is where i can specify global paths is...
I have a program, its coming up with the error

'Unable to execute the operating system file "bin/uv".'

Chances are, I just need to add the path to this as is is /usr/ibm/uv ... then you can bin/uv

I been looking for it on google but cant find it...

Thanks.
 
Old 06-28-2007, 05:41 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Already read trough your init scripts, either in /etc/rc.d or /etc/init.d ?
 
Old 06-28-2007, 05:49 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
This seems a bit odd... you typed bin/uv in order execute /usr/ibm/uv ? Is this correct?

Anyway, global paths are stored in an environment variable called PATH

echo $PATH

You can add paths to it with the export command.

export PATH=${HOME}/bin/:${PATH}

... or what you want.
 
Old 06-29-2007, 01:28 AM   #4
DMeerholz
LQ Newbie
 
Registered: Jun 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Hi,

Thanks for replies, found that $PATH thing that your are talking about Simon, added my directory to it, but there is still a problem...

"This seems a bit odd... you typed bin/uv in order execute /usr/ibm/uv ? Is this correct?"
Sorry, maybe I didnt explain right... the path to the executable from root is /usr/ibm/uv/bin, then type uv to start uniVerse.
Or cd /usr/ibm/uv and then type bin/uv to start...

Anyways, tried adding my path, didnt do anything new, probably something to do with uniVerse from here on so thanks for the info help.
 
Old 06-29-2007, 02:25 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
OK...
cd /usr/ibm/uv/bin
./uv

... executes uv (note the dot-dash, you left that out.)

Then...
the path you add should be: /usr/ibm/uv/bin/

(make sure this string is in your PATH: echo $PATH)

So you can enter
uv
... anywhere to execute it.

A Neat Trick (TM) is to make a bin directory in your home, add it to your path. Anything not in your path you want to execute, add a link to it to your ~/bin directory with the same name.

mkdir ~/bin
export PATH=${HOME}/bin/:${PATH}
cd ~/bin
ln -s uv /usr/ibm/uv/bin/uv
cd ..
uv
 
  


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
Changing PATHS Murdock1979 Slackware 2 07-27-2005 08:02 PM
different paths iomari Linux - General 1 11-10-2004 06:57 AM
Where are my paths? colly Linux - General 1 06-17-2004 07:15 AM
PHP paths? HappyDude Programming 4 09-20-2003 01:19 AM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 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