LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-22-2005, 03:04 PM   #1
neuropulse
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
"bash: run: command not found" ?


Greetings,

When I try to run a program in Terminal with run ./program, I get the error "bash: run: command not found".

I am using Mandrake Linux 10.1

Thanks
 
Old 04-22-2005, 03:09 PM   #2
jrbush82
Member
 
Registered: Mar 2002
Location: Hampton, VA
Posts: 86

Rep: Reputation: 15
The './' means to execute a program in your current directory. If you want to execute a command, you should be able to just type in the name of the program. If that doesn't work, you need to locate the executable in the file system and then run it by doing, '/path/to/command/file/program_name'
 
Old 04-22-2005, 03:14 PM   #3
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Why are you issuing the 'run' command before the program's name? It's not needed. You could at most run 'sh programname', but that's something else.
Just type the program's name at the command prompt and press Enter. Also, placing a './' in front of the program's name means that your program is located in the current directory (and it also has the right permissions). Otherwise, the program must be within your path, which can be displayed by running 'echo $PATH'. Sometimes, it's possible for a program to exist on your machine, but to be accesible only by root if it is located in /sbin or /usr/sbin.
Anyway, to find out where your program is, run 'whereis program' or 'locate program'.
 
Old 04-22-2005, 03:43 PM   #4
neuropulse
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Unhappy

It won't work :-(

Programs I download won't run when I doubleclick them.

Someone told me to type run ./program while in the prgram's directory.
http://www.linuxquestions.org/questi...hreadid=316068

Now I have also tried just typing the name of the program. And I have tried .program and /program.

The programs are in a folder on the desktop.

I installed Linux thikning it was point and click. Now I am getting very discouraged because things don't work.

Thanks

Quote:
Originally posted by harken
Why are you issuing the 'run' command before the program's name? It's not needed. You could at most run 'sh programname', but that's something else.
Just type the program's name at the command prompt and press Enter. Also, placing a './' in front of the program's name means that your program is located in the current directory (and it also has the right permissions). Otherwise, the program must be within your path, which can be displayed by running 'echo $PATH'. Sometimes, it's possible for a program to exist on your machine, but to be accesible only by root if it is located in /sbin or /usr/sbin.
Anyway, to find out where your program is, run 'whereis program' or 'locate program'.
 
Old 04-22-2005, 03:55 PM   #5
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Don't type "run", just type the command, like "./firefox-installer".
 
Old 04-22-2005, 03:58 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by neuropulse
It won't work :-(

Programs I download won't run when I doubleclick them.

Someone told me to type run ./program while in the prgram's directory.
http://www.linuxquestions.org/questi...hreadid=316068

Now I have also tried just typing the name of the program. And I have tried .program and /program.

The programs are in a folder on the desktop.

I installed Linux thikning it was point and click. Now I am getting very discouraged because things don't work.

Thanks
depending on what browser you are using, you should be able to click on "firefox-installer.bin" and it should run the program. As it stands right now, Linux is definitely not point and click ( that would defeat the whole purpose of open source, having access to the source code so you can modify, contribute, tweak, etc... it to your liking)
 
Old 04-22-2005, 04:26 PM   #7
neuropulse
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Before I continue trying to onstall this I should find out if one must go through this with every program to install?

You can't just dowble-click the prrogram to install?

I tried typing ./firefox-installer and got the message:

"./firefox-installer-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory"

I am using Mandrake 10.1 with Gnome.
 
Old 04-22-2005, 04:42 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
this occurs because Mandrake ships with gcc-3.4.x, but firefox is compiled on an older version (3.3.x).
to install packages you need to set up urpmi ( do a google for easyurpmi or search these forums for it). urpmi is mandrakes package manager and should be used whenever possible ( once you set it up, you can get a Mandrake 10.1 version of firefox)
 
Old 04-22-2005, 04:44 PM   #9
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
Quote:
I installed Linux thikning it was point and click.
Man, did you ever choose the wrong OS

The easiest way to install software is with the package manager that comes with your distro - in your case, that's RPMs, I believe.

The firefox installer isn't an RPM, so it won't be as easy to install.

Are you installing it as root, or as your normal user?
 
Old 04-22-2005, 04:57 PM   #10
neuropulse
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by oneandoneis2
The easiest way to install software is with the package manager that comes with your distro - in your case, that's RPMs, I believe.

The firefox installer isn't an RPM, so it won't be as easy to install.

Are you installing it as root, or as your normal user?
Currently, a normal user, but I can do it either way.

I want prgrams to be usable by all users.
 
Old 04-23-2005, 08:58 AM   #11
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
See my sig for a link to EasyURPMI.

You *can* install FireFox via urpmi, but it isn't the latest version on the official mirrors. thac or sgrayban may have the latest on their mirrors.
 
  


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
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 01:31 PM
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 04:58 AM
bash: passwd: command not found "HELP" balweg Red Hat 4 05-05-2005 04:47 PM
bash says "command not found" webguru24 Programming 2 01-05-2004 09:32 PM
Newbie problem: Starting YAST gives me "-bash: yast: command not found". cattleya Linux - Software 9 11-20-2003 12:18 PM


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