Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
|
|
12-28-2005, 08:33 AM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 10
Rep:
|
Application Installation Problems
Ok, I'm using Mepis and I'm fairly knew to the Linux Command Line. I did read up a little though, I tried running some of these commands I found here on linuxquestions.org, from what I understand though, I could be using "apt-get" since Mepis is a Debian distro. My file is in:
/home/demo/Documents/myApp.bin
I've tried sevral commands like:
~/myApp.bin ./configure
./configure ~/myApp.bin
make ~/myApp.bin
apt-get install myApp.bin
apt-get install myApp.bin -b
And I get no results(even while logged in as root), just a lot of errors like:
make: *** No rule to make target `/home/demo/myApp.bin'. Stop.
Anyway, I'm sure a site like this is flooded with noobs asking this
kind of stuff, but this is my first post and I did try to research this myself... but can anyone help me out?
|
|
|
12-28-2005, 09:14 AM
|
#2
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
If its postfixed with .bin, it means that its one single precompiled binary file. So, what you probably need to do with it is run it.
Code:
/path/to/file.bin
# OR
cd /path/to/
./file.bin
apt-get works with packages that are archives of files a program needs, they are postfixed with .deb always. Source packages you get when you unpack a tar.gz or tar.bz2 or similar with:
Code:
tar xzvf file.tar.gz
# OR
tar xjvf file.tar.bz2
They usually go all under a directory. That directory might have a configure script that prepares the sources for compiling, then make compiles it and make install installs. So, with a source package the install might go like this:
Code:
tar xzf software-1.0.tar.gz
cd software-1.0/
./configure && make && make install
the && just chains commands together, the chain will be executed only if there is no error in a previous stage.
So, thats the basics of installing software, have fun. (:
Last edited by Artanicus; 12-28-2005 at 09:16 AM.
|
|
|
12-28-2005, 09:21 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Location: Italy
Distribution: Ubuntu
Posts: 7
Rep:
|
ok, i think i did not understand well what you want to do but....
you can install a program in linux both by compiling it or by coping executables
in your system.
apt-get is a tool for debian and debian-derived distros, it manages for you
the downloading from a sources (/etc/apt/sources.list is the list of your sources),
the dependencies between programs, the installation of the program in the rigth folders and the updating.
make is a tool that's present in every distro and you need it to compile the major of
the programs wich are available on internet by the source code.
you usually download a tar.gz file, unpack it , cd into the folder created by the unpacking
and type make. make needs a file called Makefile in the present working directory when you type it
otherwise it outputs 'no rule to make target....'
so my question is
wath is your file?
is it an executable? is it compiled for linux systems?
if yes you can launch it just by typing './myApp.bin' from /home/demos/documents
|
|
|
12-28-2005, 09:51 AM
|
#4
|
LQ Newbie
Registered: Dec 2005
Posts: 10
Original Poster
Rep:
|
Ok I tried the codes above as Root and User but I keep getting:
Code:
bash: /home/demo/Documents/myApp.bin: Permission denied
Maybe this is due to the fact I'm running Mepis off the live cd right now. I thought I read you could install stuff while running the live cd (maybe that was knoppix...) but I guess I keep trying until I can fix the boot on Windoze and install this as Virtual Machine again.
|
|
|
12-28-2005, 09:54 AM
|
#5
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
Actually that happens because the file doesn't have rights to execute.
that should fix that.. (:
|
|
|
01-01-2006, 06:28 AM
|
#6
|
LQ Newbie
Registered: Dec 2005
Posts: 10
Original Poster
Rep:
|
Ok I tried chmod +x ~/myApp.bin and for once I didn't get any errors. But unfortunately the app did not install itself either. Anyone else got any advice?
|
|
|
01-01-2006, 07:31 AM
|
#7
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Code:
/home/demo/Documents/myApp.bin
Run that again after you chmod the file. When you got the permission denied error, that was it's way of telling you that you didn't have permission to execute the file. We're just assuming that your user owns it so chmod +x changes the permissions on the file to allow your user to execute it. Now you need to go back and try to execute it again, it should work no problems
|
|
|
01-03-2006, 09:04 AM
|
#8
|
LQ Newbie
Registered: Dec 2005
Posts: 10
Original Poster
Rep:
|
Wow, I just ran my first two apps in Linux! Thanks
|
|
|
All times are GMT -5. The time now is 01:13 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
|
|