LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-08-2003, 12:04 AM   #1
Hank_Evans
LQ Newbie
 
Registered: Oct 2003
Location: Christchurch, New Zealand
Posts: 3

Rep: Reputation: 0
Trying to run aMSN from GUI


Great forum! I have found aanswers to all my noobie questions. I have been playing with Mandrake 9.1 for the 1st time today. It seems to be running OK.

I have installed aMSN and can execute it by typing ./amsn at the terminal prompt.

Just curious... why do some programs require the ./, like aMSN and other programs dont, like LinNeighborhood.

I can run LinNeighborhood from my GNOME GUI, but not aMSN.

If someone can tell my why?

Thanx
 
Old 10-08-2003, 02:22 AM   #2
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Rep: Reputation: 146Reputation: 146
when you type the name of a program at the command line, Linux looks in one of a couple of locations, mainly it looks in /usr/bin. The directories that the command line looks in is called the PATH. WHen you type a command and it comes back "comand nor found" it means that the thing your are trying to start up isn't in the any of the locations on the PATH.
When you type ./ before a command or file name, it tells the comand prompt that you are telling it to look within the current working directory. So, if you open a terminal and type ./amsn then it probably means that either the executable part is in your Home directory or there is a sym link (sort of like a shortcut) there, that points to the actual executable part.
Thus, you could place a symlink in /usr/bin that points to the amsn executable, so that you could open a terminal and simply type amsn

As root, in a terminal type

ln -s /xxx/xxx/xxx/amsn /usr/bin

(replace xxx with appropriate dir's)
 
Old 10-08-2003, 02:50 AM   #3
quantumposition
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Rep: Reputation: 0
or you could add ./ to your $PATH var in your $HOME/.profile
This is not recommmended for root.
add this line
export PATH=$PATH:./
Tht way it will always look in the current dir evertime you try to run a command.
just remember, it searches the path in order. to check your path type echo $PATH
safest bet is to always use ./
 
Old 10-08-2003, 07:10 PM   #4
Hank_Evans
LQ Newbie
 
Registered: Oct 2003
Location: Christchurch, New Zealand
Posts: 3

Original Poster
Rep: Reputation: 0
thanx guys, i made a link with the ln -s command and it now works thru the gui without having to have the terminal running aswell.

cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How get wish file for run amsn??? Nele Linux - Software 3 05-03-2005 03:42 PM
Canīt run aMSN hotpepsi Linux - Newbie 0 12-30-2004 01:12 PM
aMSN won't run, HELP!! kopikat Slackware 3 12-28-2004 04:31 PM
Cant run amsn-0.94 on redhat 9 after installing. zaid_redhat Linux - Software 1 12-21-2004 10:48 AM
cant seem to run amsn endezeichen Linux - Software 2 11-19-2003 11:08 PM


All times are GMT -5. The time now is 10:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration