LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-09-2004, 08:49 PM   #1
labced501
LQ Newbie
 
Registered: Sep 2004
Location: Gator Town, FL
Distribution: Mandrake
Posts: 8

Rep: Reputation: 0
how to install a .src.rpm


I've just installed Mandrake 10.1 rc1 and I'm trying to install a src.rpm. The instructions about how to install it are fairly clear, but when I type in the rpmbuild command, it returns command not found. Is this a command that would be installed by default on Mandrake, or do I need to install another package?
 
Old 09-09-2004, 11:46 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
its possible that they may use :
Code:
rpm --rebuild
rather than "rpmbuild --rebuild
 
Old 09-10-2004, 08:29 AM   #3
labced501
LQ Newbie
 
Registered: Sep 2004
Location: Gator Town, FL
Distribution: Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
Tried that and got
Code:
[root@localhost labced]# rpm --rebuild
/usr/lib/rpm/rpmb: No such file or directory
More suggestions?
 
Old 09-10-2004, 08:40 AM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well i guess the easiest thing to do at this point is :
Code:
rpm -qa rpmbuild
if that doesn't show any results, then you don't have the rpmbuild rpm installed.
and obviously will need to install it if that is the case
 
Old 09-10-2004, 08:44 AM   #5
labced501
LQ Newbie
 
Registered: Sep 2004
Location: Gator Town, FL
Distribution: Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
So, I did as instructed and
Code:
[root@localhost labced]# rpm -qa rpmbuild
[root@localhost labced]#
which I'm guessing means that it is not installed?

I've checked an ftp mirror for the rpmbuild package and haven't been able to find it among the regular distribution packages.

Is there a place from which I can download it?
 
Old 09-11-2004, 07:58 PM   #6
chfite
LQ Newbie
 
Registered: Nov 2003
Location: Taylors, SC
Distribution: Mandrake 10.0
Posts: 13

Rep: Reputation: 0
On my Mdk system it is rpm-rebuilder-0.14-1mdk, try
#rpm -qa rpm-rebuilder

Hope this helps.
 
Old 09-12-2004, 09:01 AM   #7
nafan
Member
 
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
On my Mandrake 10.0 Official box the rpmbuild binary is in the rpm-build-4.2.2-7mdk package, you should check to see if this is installed first using rpm -q rpm-build. You will also need to specify the name of the .src.rpm file you want to build....
Code:
[poohbear@server poohbear]$ rpmbuild --rebuild kernel-2.6.3.7mdk-1-1mdk.src.rpm
Installing kernel-2.6.3.7mdk-1-1mdk.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.83408
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf kernel-2.6
+ /bin/mkdir -p kernel-2.6
+ cd kernel-2.6
+ /usr/bin/bzip2 -dc /usr/src/RPM/SOURCES/linux-2.6.3.tar.bz2
+ tar -xf -
When the source rpm has been rebuilt you will find a new package somewhere under /usr/src/RPM/RPMS with the same name (minus the .src bit) as the original .src.rpm file. You can then install it like a normal downloaded rpm.

Last edited by nafan; 09-12-2004 at 09:12 AM.
 
Old 09-30-2004, 04:13 PM   #8
Huji
LQ Newbie
 
Registered: Sep 2004
Location: Brussels, belgium
Distribution: Mandrake 10.1
Posts: 4

Rep: Reputation: 0
Thumbs up cant install rpm-build-4.2.2-15mdk.i586.rpm

Hello (again after five times being ejected -opera shutting down- when trying to right-click in the message box...),

Well, so I thought I had found an answer to my problem when reading this thread, all the same problems with me, beginning to end. I didn't try the last proposal because a) I'm a newbie, b) I've got a slightly different version -mandrake 10.1-

so I downloaded rpm-build-4.2.2-15mdk.i586 after having tried the same but with "7mdk" and got this message :

Some package requested cannot be installed:
rpm-build-4.2.2-15mdk.i586 (due to unsatisfied gcc-c++)
do you agree ?

What is happening ?

ps: found it on [URL=http://rpm.phone.net]


hope I find a solution...

the reason I'm trying to do this is because my fonts are really bad for lots of programs and I found a site where they propose to build and install a package to change the fonts into windows fonts

___2 October__
ok, I didn't find a solution to the "rpm-build"-"gcc-c++" problem but a Linux-friend told me I shouldn't bother, I was going too far. Mandrake has enough capacities to find other solutions than start compiling your own rpm's.

concerning the fonts, going into Mandrake's control center, and there choosing the option to import fonts from Windows (on the other partition of my computer) and it's ok.

that's it.

Huji

Last edited by Huji; 10-02-2004 at 02:25 PM.
 
Old 10-03-2004, 07:11 AM   #9
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Re: cant install rpm-build-4.2.2-15mdk.i586.rpm

Quote:
Originally posted by Huji
Hello (again after five times being ejected -opera shutting down- when trying to right-click in the message box...),

Well, so I thought I had found an answer to my problem when reading this thread, all the same problems with me, beginning to end. I didn't try the last proposal because a) I'm a newbie, b) I've got a slightly different version -mandrake 10.1-

so I downloaded rpm-build-4.2.2-15mdk.i586 after having tried the same but with "7mdk" and got this message :

Some package requested cannot be installed:
rpm-build-4.2.2-15mdk.i586 (due to unsatisfied gcc-c++)
do you agree ?

What is happening ?


Huji
It sounds like you are breaking package dependancies right and left by NOT downloading RPM's which are specific to your distribution.

Given that you are relatively new at this, it is always best to ONLY use "Updates, Contribs, & PLF" RPM's for your specific distro.

E.G. 10 or 10.1 (whatever you are actually using) from the respective repositories.

Also don't use RPM "bare" to install the packages.

Rather point the Mandrake Software Media manager to the PROPER sources.

See: http://www.zebulon.org.uk/ for full instructions.

Then when you want to install something use

urpmi packagename

To keep your distro consistent. It will automatically download anything you are missing and install it for you without trashing everything up.
 
Old 10-03-2004, 07:27 AM   #10
Huji
LQ Newbie
 
Registered: Sep 2004
Location: Brussels, belgium
Distribution: Mandrake 10.1
Posts: 4

Rep: Reputation: 0
Smile

Thanks a lot opjose, I'll certainly keep that in mind and try and keep my system nice and sober.

Huji
 
Old 10-06-2004, 03:32 PM   #11
Huji
LQ Newbie
 
Registered: Sep 2004
Location: Brussels, belgium
Distribution: Mandrake 10.1
Posts: 4

Rep: Reputation: 0
still trying to do something not so clean ?

Hello again (and opjose),

I tried to keep your advise in mind. I used easy urpmi to configure rpmdrake and it works quite nice. .Only now I found the talk-over-the-net program called Skype (which I couldn't find in rpmdrake install) and downloaded it to my desktop. Now before doing something bad I'd like your advise about this, it's what they say on the site :

Open console
Log on as superuser (“root”)
Find the location where you saved the RPM
Enter the following command: “rpm -U skype-version.rpm”, where skype-version.rpm is the name of the file you downloaded, such as skype-0_90_0_1.rpm

Should I do this, or how could I do it in another, maybe safer, way ?

Thanks in advance,

Huji
 
Old 10-07-2004, 03:59 PM   #12
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Whenever you use a "foreign" RPM, try using RPM on it first and see if it installs.

E.G.

rpm -Uvh packagename.i586.rpm

If it doesn't complain about dependancies you are fine.

If it does, then try URPMI on it

e.g.

urpmi packaname.i586.rpm

Since you should have urpmi only pulling from the Mandrake repositories any support RPM's that may be installed will probably be fine.

Remember that you can also browse the repository contents using the "install software" option in the menu.

This displays what is available to URPMI, as it's merely a GUI to it, in effect.
 
  


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
install src.rpm ust Linux - Software 7 10-13-2005 08:34 AM
Can't install src.rpm corbis_demon Linux - Newbie 4 06-30-2004 01:09 PM
how to install *.src.rpm vanhelsing Linux - Software 1 06-10-2004 08:35 AM
rpm install from src kcella Linux - Software 2 11-19-2003 05:19 PM
How to install src.rpm gexiaofei Linux - Software 9 08-05-2003 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:46 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