LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-11-2010, 05:39 AM   #1
desire2win4
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
rpmbuild command help with --nodeps option


Hi All,

I need help on rpmbuild command. I am working on RHEL3 platform. I wanted to create a RPM package for my application. I followed these steps to create RPM package.
1. created one .spec file according to the requirement.
2. run the command rpmbuild -bs filename.spec
3. This will create the src package
4. Then ran the command rpmbuild -ba filename.spec.

this will build the RPM package in /usr/src/redhat/RPMS/i386 path.

When i go to that path and run " rpm -i filename.rpm"
it throws the following error
error: Failed dependencies:
libc.so.6(GLIBC_2.3.4) is needed by filename
libc.so.6(GLIBC_2.4) is needed by filename

So when i use rpm -i --nodeps filename.rpm, i will not get the dependencies error. Hence the problem is solved.

But i want to build the rpm without any dependencies. when i saw the rpmbuild --help, it says we can use "rpmbuild --nodeps -ba filename.spec"

But i am not able to configure the dependencies error while installing the rpm.

Can anyone please suggest me a solution where i can configure the dependencies error while building the rpm.

Thanks in advance

Last edited by desire2win4; 08-11-2010 at 05:40 AM.
 
Old 08-12-2010, 04:45 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
? just howmany old RHEL3 servers are you going to install this on ?
if just one then why make a rpm out of the source .
there will not be that many packages that will install with up2date for rhel3

just install the source
 
Old 08-12-2010, 08:07 PM   #3
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Rep: Reputation: 38
Try adding these in the spec file

Code:
Requires: glibc
Provides: libc.so.6
Then build the rpm and install.
 
Old 08-16-2010, 01:56 AM   #4
desire2win4
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi John,

I want to customise my RPM package, not to have any dependencies.

Thanks
 
Old 08-16-2010, 01:58 AM   #5
desire2win4
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi the_gripmaster,

I tried your solution but it didnot work. i want to avoid the dependencies check while building the RPM which indeed will resolve the problem while installing the RPM.

Any help would be appreciated.

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need halp with rpmbuild command Monkey Man Fedora 3 10-06-2006 08:10 PM
rpm have --nodeps option with dpkg is such an option available deepclutch Debian 2 03-26-2006 09:49 PM
rpmbuild --with : mysql - unknown option. How to pass extra options to build? fireman949 Red Hat 0 07-06-2005 06:53 PM
rpmbuild: command not found zebra5 Linux - Software 3 10-08-2003 02:31 PM
rpmbuild-command not found arnold_it Linux - Software 4 08-11-2003 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:14 AM.

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