LinuxQuestions.org
Register a domain and help support LQ
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 01-28-2005, 12:29 AM   #1
solutionseeker
Member
 
Registered: Jan 2005
Location: US
Distribution: Debian for now
Posts: 43

Rep: Reputation: 15
How to run a exe file?


I downloaded a file .tar.gz and went into root's /usr/bin and pasted it in this directory...

It created another usr/bin with some exe files in it but when I click on them it does nothing...
When I go to shell and I type /usr/bin/usr/bin/myexefile it says bash: myexe:command not found...

Any ideas for me?
 
Old 01-28-2005, 12:36 AM   #2
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
if you download a program most likely its going to be the source code that you need to compile the program

so lets say program.tar.gz
now you need to extract it
tar -xvzf program.tar.gz
go to the dir where it extracted read the README or INSTALL file
and it will tell you how to install the program
most like likely ./configure then make then make install
that will usually check for dependencies compile it then isntall it on your system
then if the program put a link in the /usr/bin dir you should just be able to type the program name in any terminal and it should run

giving that you had no errors thru this prossess


./configure check for dependencies
make compiles the program
make install install the compiled binaries that i compiles

Last edited by citrus; 01-28-2005 at 01:40 AM.
 
Old 01-28-2005, 12:36 AM   #3
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
.exe is a windows file....not sure how you got that out of a tar.gz...what file is it?
 
Old 01-28-2005, 01:04 AM   #4
solutionseeker
Member
 
Registered: Jan 2005
Location: US
Distribution: Debian for now
Posts: 43

Original Poster
Rep: Reputation: 15
I said .exe because when I right click it it said executable...

I have usr/bin/executables and I did just what is described above and I cant run the file...

Can I set a classpath or something in bash ? since it says bash and command not found?

Can you tell me what I can type in .bashrc file? my file is under root and in usr/bin/usr/bin
 
Old 01-28-2005, 01:36 AM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Hmm...
Try typing the full path and see if it's even a $PATH problem
if it is, then type this in .bash_profile (create it if not there)
Code:
export PATH $PATH:/usr/bin/executables
 
Old 01-28-2005, 01:42 AM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Linux does not care if a file is named dslfjsdljdl.exe. Also it will not run it if it does not have the proper permissions. The only way a file will be executable is if it has a execution permission for either user, group, or other. You have to set the file to the appropriate permission mode to execute the file. Usually executable files will have a permission mode of 750. See chmod in man pages for more information.
 
Old 01-28-2005, 01:59 AM   #7
solutionseeker
Member
 
Registered: Jan 2005
Location: US
Distribution: Debian for now
Posts: 43

Original Poster
Rep: Reputation: 15
when I right click the file I see that it has all acces... read, write,exe for all group, user,others...

I am in root...
 
Old 01-28-2005, 02:51 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
let's do this....
Code:
ls -l /usr/bin/usr/bin/myexefile
if it says it's not found, then try:
Code:
find /usr | grep myexefile
to find the actual path, if you still can't run it from there, show us the "ls -l " output for that location.

i hope you see how bad an idea it was to say it's a ".exe" file.....
 
  


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 to run .exe file in Redhat Linux Fedira Core 3 sumathi Linux - Software 5 07-26-2005 06:50 AM
run a .exe file kuertensun Debian 6 07-01-2005 12:01 PM
Run exe in Linux???!!!!! yenonn Linux - General 10 10-14-2004 07:48 AM
can't run a .exe file on linux?? eye Red Hat 1 05-28-2004 02:19 AM
What do I need to run a .exe file? Ekim Gram Linux - Newbie 4 05-09-2003 08:16 AM


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