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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-28-2005, 12:29 AM
|
#1
|
Member
Registered: Jan 2005
Location: US
Distribution: Debian for now
Posts: 43
Rep:
|
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?
|
|
|
01-28-2005, 12:36 AM
|
#2
|
Member
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548
Rep:
|
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.
|
|
|
01-28-2005, 12:36 AM
|
#3
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098
Rep:
|
.exe is a windows file....not sure how you got that out of a tar.gz...what file is it?
|
|
|
01-28-2005, 01:04 AM
|
#4
|
Member
Registered: Jan 2005
Location: US
Distribution: Debian for now
Posts: 43
Original Poster
Rep:
|
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
|
|
|
01-28-2005, 01:36 AM
|
#5
|
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851
Rep:
|
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
|
|
|
01-28-2005, 01:42 AM
|
#6
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
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.
|
|
|
01-28-2005, 01:59 AM
|
#7
|
Member
Registered: Jan 2005
Location: US
Distribution: Debian for now
Posts: 43
Original Poster
Rep:
|
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...
|
|
|
01-28-2005, 02:51 AM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.....
|
|
|
All times are GMT -5. The time now is 08:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|