LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-11-2009, 07:13 AM   #16
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21

Quote:
Originally Posted by colucix View Post
As per my previous post you have either to compile from source or to build the RPM by yourself (which implies compiling from source).
Colucix you are right. But maybe little confusing for newbie users.

So to put it simply. WHATEVER.tar.gz is a method used for distributing of source code. The entire directory containing source is first TARed into single file which is later compressed by GZIP. So after running GZIP and TAR on that file (or tar with -z switch) you get the source code. But this is not .rpm package.

Now there are three options
1) use source codes to compile the package and install it (./configure && make && make install procedure)
2) use source codes to create .rpm package and than install the package using rpm (rpmbuild && rpm.)
3) search the web for .rpm package
 
Old 05-11-2009, 07:26 AM   #17
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Quote:
Originally Posted by shpenat View Post
Colucix you are right. But maybe little confusing for newbie users.
Well... you're right. Usually I give a minimal information to stimulate new linux users to find the proper documentation. If you google for "build rpm from source" you find a lot of useful docs.
 
Old 05-11-2009, 08:58 AM   #18
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by colucix View Post
You have to install it. Which linux distribution are you running on?

In any case, you can first try to compile it from source (the same will be done by the rpmbuild process) to see if you miss some dependency. Try
Code:
./configure --prefix=/usr/local
if you don't get any error, try
Code:
make
Hi I get the following command when I run the command suggested by you.

bash: ./configure: No such file or directory

and after running the uname command on my machine I get the following output

Linux S8300_8 2.6.18-53.AV11PAE #1 SMP Wed Sep 24 06:37:56 MDT 2008 i686 i686 i386 GNU/Linux.
So for the particular rpm is there any particular linux distribution that I have to use.

Ajit
 
Old 05-11-2009, 09:48 AM   #19
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Well. Let's start from the beginning:

1) if you want to try to compile from the source code, first you have to extract the tarball (that is the .tar.gz archive) then change to the extracted directory and finally run the commands to compile and install. For example:
Code:
$ tar zxf ORBit2-2.14.17.tar.gz
$ cd ORBit2-2.14.17
$ ls
AUTHORS      Makefile.shared                        ORBit.spec.in  config.log    linc2
COPYING      NEWS                                   ORBit2.m4      config.sub    ltmain.sh
COPYING.LIB  ORBit-2.0-uninstalled.pc.in            README         configure     missing
ChangeLog    ORBit-2.0.pc.in                        README.win32   configure.in  orbit2-config.in
HACKING      ORBit-CosNaming-2.0-uninstalled.pc.in  TODO           depcomp       orbit2-zip.in
INSTALL      ORBit-CosNaming-2.0.pc.in              acinclude.m4   docs          src
MAINTAINERS  ORBit-imodule-2.0-uninstalled.pc.in    aclocal.m4     gtk-doc.make  test
Makefile.am  ORBit-imodule-2.0.pc.in                config.guess   include
Makefile.in  ORBit.spec                             config.h.in    install-sh
$ ./configure --prefix=/usr/local
<output omitted>
$ make
<output omitted>
$ su -
password: <enter root password here>
# cd /path/to/ORBit2-2.14.17.tar.gz
# make install
# exit
2) if you want to install the RPM package you have two possibilities:

a) download and install a binary package made for your distribution, using the package manager. Your distribution is that one you get using the command
Code:
lsb_release -a
the package manager (depending on your distribution) can be the "Add/Remove Software" application from the start menu (as in Fedora or CentOS), the Yast package management (as in Opensuse), the yum command (as in Fedora, CentOS, RHEL5), the zypper command (as in Opensuse).

b) build the RPM from the source code. As you can see inside the ORBit2-2.14.17 directory there is a file called "ORBit.spec". This is the rpm specification file, containing all the information needed to build and install a RPM. This tells you that you can build your own RPM using the source code and the spec file. This can be done simply by
Code:
# rpmbild -tb ORBit2-2.14.17.tar.gz
but you have to install the rpmbuild package previously (do that using the package manager, whatever it be).

Hope it is a little more clear, now!
 
Old 05-11-2009, 10:02 AM   #20
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
It seems to me a l lot of dependent files are missing in my case.So I have to install then I guess.Thanks a ton for you help.I will have to install them.I will let you know my findings.

Thanks,
Ajit
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen Problem while creating guest " Invalid file location given: No such file " mgurnani Linux - Software 0 05-09-2009 03:02 PM
TAR - compresing using 4 cores dlugasx Linux - Software 2 12-12-2008 03:33 AM
wxPython problem: /_core_.so: cannot open shared object file: No such file or directo aregmi Linux - Software 2 06-06-2007 08:53 PM
GDM complain about my .dmrc file although there is no problem with this file. TruongAn Linux - Software 7 04-27-2006 05:18 AM
Linker problem: can't find a file, but the file exists atlep Programming 5 08-16-2004 06:15 AM


All times are GMT -5. The time now is 07:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration