LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 02-17-2004, 05:58 PM   #1
jmp875
LQ Newbie
 
Registered: Feb 2004
Location: Philadelphia
Distribution: Mandrake 9.2
Posts: 24
Thanked: 0
Installing Programs - A simple question from my simple mind


[Log in to get rid of this advertisement]
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
jmp875 is offline     Reply With Quote
Old 02-17-2004, 06:07 PM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Kubuntu
Posts: 620
Thanked: 2
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 ./
jax8 is offline     Reply With Quote
Old 02-17-2004, 06:29 PM   #3
jmp875
LQ Newbie
 
Registered: Feb 2004
Location: Philadelphia
Distribution: Mandrake 9.2
Posts: 24
Thanked: 0

Original Poster
worked like a charm. many thanks.
jmp875 is offline     Reply With Quote
Old 02-17-2004, 06:48 PM   #4
maillion
Member
 
Registered: Jan 2004
Location: Texas, USA, Terra
Distribution: Debian (currently...)
Posts: 74
Thanked: 0
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"?
maillion is offline     Reply With Quote
Old 02-17-2004, 07:48 PM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,263
Blog Entries: 4
Thanked: 1
./ is like the crank on an old model "A". Its there to fire things up.

But seriously, it just says "execute this-->", right?
vectordrake is offline     Reply With Quote
Old 02-17-2004, 08:22 PM   #6
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259
Thanked: 0
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
Tyir is offline     Reply With Quote
Old 02-18-2004, 10:03 PM   #7
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Kubuntu
Posts: 620
Thanked: 2
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
jax8 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration