LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-17-2004, 04:58 PM   #1
jmp875
LQ Newbie
 
Registered: Feb 2004
Location: Philadelphia
Distribution: Mandrake 9.2
Posts: 24

Rep: Reputation: 15
Installing Programs - A simple question from my simple mind


sorry to waste valuable disk space with such a dumb question, but in the command line (using Konsole, not that it may matter), I'm trying to install a program (acrobat reader) with the provided executable file "INSTALL". obviously, i can't do the installation as a user, but when i try to run the INSTALL file as root, i get the message:

"bash: INSTALL: command not found"

everything seems as though it should work; what simple answer am i missing? any help would be greatly appreciated.

sincerely,
phloundering in philly
 
Old 02-17-2004, 05:07 PM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
try

./INSTALL

by default ./ in not in the PATH variable, so when you run applications you have to specifically tell the system that you are looking in the current directory. You can add ./ to the $PATH variable if you want like I have on my system, then you dont have to type ./
 
Old 02-17-2004, 05:29 PM   #3
jmp875
LQ Newbie
 
Registered: Feb 2004
Location: Philadelphia
Distribution: Mandrake 9.2
Posts: 24

Original Poster
Rep: Reputation: 15
worked like a charm. many thanks.
 
Old 02-17-2004, 05:48 PM   #4
maillion
Member
 
Registered: Jan 2004
Location: Texas, USA, Terra
Distribution: Debian (currently...)
Posts: 74

Rep: Reputation: 15
Quote:
Originally posted by jax8
try

./INSTALL

by default ./ in not in the PATH variable, so when you run applications you have to specifically tell the system that you are looking in the current directory. You can add ./ to the $PATH variable if you want like I have on my system, then you dont have to type ./
Thanks jax8. Tell me, does ./ refer to a directory beneath the one you are in, or does it refer to "root"?
 
Old 02-17-2004, 06:48 PM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
./ is like the crank on an old model "A". Its there to fire things up.

But seriously, it just says "execute this-->", right?
 
Old 02-17-2004, 07:22 PM   #6
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
actually, im pretty sure, the . refers to the current directory
So if you typed INSTALL
it will look for the executable INSTALL in your PATH, (eg in /usr/bin, those places)
If you do ./INSTALL
It executes the file called INSTALL in the PRESENT directory

. --> present directory
.. --> parent directory
 
Old 02-18-2004, 09:03 PM   #7
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
Quote:
Originally posted by maillion
Thanks jax8. Tell me, does ./ refer to a directory beneath the one you are in, or does it refer to "root"?
./ refers the the directory you are currently in
../ refers to the parent directory

if you create a directory with nothing in it and you type the command

ls

you will find that ./ and ../ always exist. This is becuase every directory has to be able to refer to itselt and every directory (beside the root directory /) has a parent from which it was accessed.

-JAX
 
  


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
can't compile simple C++ programs on Suse 9.1 after installing gcc cyclebain Linux - Software 9 07-04-2007 08:04 AM
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
Can anyone give me a simple no-nonsense guide to installing source programs? G_Freeman76 Red Hat 1 02-27-2005 09:34 AM
Burning audio cds...is there an easier way for the simple of mind? Ogledbyoldmen Linux - Software 1 12-26-2003 03:36 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 04:08 AM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration