LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 12-28-2005, 07:33 AM   #1
Israel213
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Rep: Reputation: 0
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?
 
Old 12-28-2005, 08:14 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
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 08:16 AM.
 
Old 12-28-2005, 08:21 AM   #3
Mr.Bloom
LQ Newbie
 
Registered: Oct 2005
Location: Italy
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
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
 
Old 12-28-2005, 08:51 AM   #4
Israel213
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 12-28-2005, 08:54 AM   #5
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Actually that happens because the file doesn't have rights to execute.

Code:
chmod +x file.bin
that should fix that.. (:
 
Old 01-01-2006, 05:28 AM   #6
Israel213
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Original Poster
Rep: Reputation: 0
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?
 
Old 01-01-2006, 06:31 AM   #7
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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
 
Old 01-03-2006, 08:04 AM   #8
Israel213
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Wow, I just ran my first two apps in Linux! Thanks
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Installation Directories Skizzler Linux - Software 3 05-26-2005 03:32 AM
Application installation Fritz_Monroe Linux - Newbie 3 04-26-2005 07:34 PM
General application installation help needed mojo Linux - Newbie 10 11-05-2004 10:30 AM
Application installation problem. rhoniel Mandriva 3 07-07-2004 01:38 AM
Application Installation Directory tuka Linux - Newbie 1 09-01-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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