Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
src.rpms are just the source files for the program, and they will be installed into whatever directory the creater of the program has chosen. I *think* that the usual place is /usr/src, but it can be different for any program. Once the source is installed you can cd to that directory and compile and install the program.
src.rpms are nice because developers can specify a path for where the source is stored, and if the app is ever upgraded, the old source gets copied over by the new source. This can be a nice feature if you were like me in the beginning and had source trees stored in 9 different directories.
I'm really having a hard time figuring this out also (I know nothing about programming and I've never compiled anything in my life).
I searched the web, looked at rute and the linux cookbook, and can't really find anything other than to use "rpmbild" to build an rpm from the source rpm, and then install that. Apparently I'm either doing it wrong or I didn't install rpmbuild when I installed RH9 - I can't find it.
Can anyone point me in the direction of an RPM for RPMBUILD (yes, I did look)?
Does anyone know where I can find a good how-to for compiling a program from source code?
Personally, I avoid src.rpm's whenever possible. I think it is easiest with an RPM based system (RedHat or Mandrake) to just install from an .rpm, if you can find it for the program that you want. I prefer to dl source code as a .tar.gz or .tgz or .tar.bz2 (all 3 are referred to as tarballs commonly) and compile and install this way.
I keep all of my source trees in /usr/src/name_of_tarball.
So I dl program_v1.0.tar.gz from the makers website. I save it in my home directory, unzip it:
and then untar it:
tar -xvf program_v1.0.tar
and it creats a directory called program_v1.0 in my home directory. I then su to root, and mv the source tree to /usr/src:
mv program_v1.0 /usr/src
and then exit back to my user, and then:
./configure && make
then su to root again and:
exit back to user and then just run the proggie.
Trickykid wrote a great tutorial on installing from source, great place to start:
can't really find anything other than to use "rpmbild" to build an rpm from the source rpm, and then install that. Apparently I'm either doing it wrong or I didn't install rpmbuild when I installed RH9 - I can't find it.
The RPM is called rpm-build. As root doing "rpm -q rpm-build" shows if it is installed and if it is, the version. Else it's is on one of your RH9 install cdroms.
Building from source rpm isn't hard unless it trips over dependencies but then you'll have the same problem building from source. Install the src.rpm, locate the spec file (default is /usr/src/redhat/SPECS/), then do "rpm -ba <specfile>" and it will build the rpm.