Operating Systems > Linux and UNIX
how to install a program?
BouncingAyatollah:
For RedHat you can install packages several ways.
For each of these
su -
<enter root pwd>
cd /to/wherever/the/files/are
(you can hit TAB to complete the pathname as you go or double-TAB for a list of possibles, e.g. typing cd /home/unfo then hitting TAB would complete the /home/unforgiven for you)
1) Ready-made RPM, choose one *built for your version of RedHat*, and either double-click the RPM file from the desktop or
rpm -ivh mynewapp.rpm
(= install, verbose, and show progress bar)
If you need other dependencies and download them as rpms you can install them all on the same line so you don't have to worry about which order to install them in e.g.
rpm -ivh mainapp.rpm somelibrary.rpm anotherone.rpm somethingelse.rpm
2) Source RPMs which are source code packaged up to build INTO an RPM package for your system. The benefit here is that seeing as it is built on YOUR system it should work.
rpmbuild --rebuild newapp.src.rpm
and NOTE where the RPM file is put! Install as above from there.
3) Get source code and compile up. Will usually come as a .tar, .tar.bz2, .tar.gz file or something like this. Tar, gzip and bzip2 are often used to compress files and together, so a file may be a tar file which is THEN zipped too.
To uncompress use
bunzip2 filename.tar.bz2
or
gunzip filename.tar.gz
then
tar -xvf filename.tar (x-tract, verbose, file).
Note if your version supports it (usually does), tar can pass thru gzip or bzip2 files automatically like this:
tar -xvzf filename.tar.gz (gzip)
tar -xvjf filename.tar.bz2 (bzip2)
If you prefer GUI stuff use Ark which is available from the menus for unarchiving (if you double-click an archive file this is what runs).
When the tar file is extracted you will usually have a new directory to cd into. Look in there and there will usually be a configure file or MAYBE something like an install.sh file. The usual process is
cd install_dir
./configure
make
make install
the ./ part is because the shell looks for commands in the "command path" and nowhere else. You are in a directory that is NOT part of the command path so if you type a command from in there (e.g. configure) the shell will not "see it" automatically. A single "." in linux means "the current directory" so you are saying "run configure, which is in the current directory". You do not need this for "make", because the make command itself is stored somewhere that is already included in the command search path.
If there is something like install.sh try
sh install.sh
or something like install.bin do
./install.bin
however for source code it is usually done with configure and make as above.
Whatever, there should be a README file, so
cat README | more
will print this to the screen, hit space for more pages, this will tell you how to install.
Once whatever method is done, go back to normal user with exit, type the command name and see if it runs ok.
You can type
command_name &
to run in the background too to carry on typing in the shell.
If it runs ok you can add it to your menus, use the menu editor, add it as a new item, choose an icon for it, in the command field just enter the command that runs it, Apply and it is ready on your menu (now you can add it to your "task bar" equivalent as a button or whatever).
If you prefer pre-built RPMs to source "tarballs" (.tar.gz files etc.) you will find many kind souls build these up for different distros. Have a look on the net at places like FreshRPMs or use RPMfind I'm sure there are others too.
Hope this helps.
suselinux:
quote:Originally posted by Unforgiven1:
it seems like as soon as I ask a question I figure it out by myself.
Limewire is .bin
here's how I did it.
su
root pw
cd home/unforgiven/
sh /LimeWireLinux.bin
it ran and then informed me I needed a Java Virtual Machine. where the hell do I get one of those?
--- End quote ---
If you ever need something like that do two things
go to rpmfind.net
and type in what you need really useful when your installing an RPM and it says you need glibc or something
also go to google
and you can find what you need
edit:
you forgot the . between www and google, fixed it for you
[ August 10, 2003: Message edited by: Stryker ]
Siplus:
heh, it seems that many people have already given you enough information for what you are asking for, but if you want to install apt-get, a debain based network for downloading/updating programs, tell me and i'll tell ya where you can get it.
there is also gui for apt-get, Synaptic. i think that's how it's spelled
Unforgiven1:
that sounds good siplus.
the thing i'm struggling with hardest of all is making a java virtual machine work. I can't seem to get it to install so mozilla will use java apps that are on some of the web pages I visit.
[edit] more specifically the one needed to enter yahoo chat.
[ August 10, 2003: Message edited by: Unforgiven1 ]
suselinux:
quote:Originally posted by Unforgiven1:
that sounds good siplus.
the thing i'm struggling with hardest of all is making a java virtual machine work. I can't seem to get it to install so mozilla will use java apps that are on some of the web pages I visit.
[edit] more specifically the one needed to enter yahoo chat.
[ August 10, 2003: Message edited by: Unforgiven1 ]
--- End quote ---
try manually placing A "link to application"
right click
--new
---creat link to aplication
in the /home/unforgiven/mozilla/plugins
in the address field put the address to your JAVA thingy
or copy the entire thing here
or are you sure you don't just need the plugin, cuz that's different than the virtual machine.
you know what I did for the plugin I just went to a webpage that called for it like the yahoo thing
but I went as root, then when the browser asked me if I wanted to install the plugin it was all done for me
just make sure that you have allowed installing over the net in your mozilla prefrences
edit
--preferences
---advanced
-----software instalation
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version