LinuxQuestions.org
Visit Jeremy's Blog.
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 07-15-2008, 06:27 PM   #1
jungle
LQ Newbie
 
Registered: Aug 2004
Posts: 19

Rep: Reputation: 0
Replacing rpms by compiling from source


I'm using fc6 right now, which is no longer getting new updates apparently. No big deal. The only problem I'm having is with some of the compile options for the rpms. There is a lot of stuff that I wish ffmpeg had been compiled to support, but it was not.

I want to recompile ffmpeg, but right now it's installed with an rpm. If I use yum to remove it, it wants to remove all the dependencies.

I do know about " rpm -e --nodeps ffmpeg", but I'm kindof afraid that will break something. I tried that approach for adding utf-8 support to pcre so i could compile a different program, and I ended up re-installing the rpm after a couple trying hours.

Is there a good way to do this? Can I just install over the original? that doesn't seem like a good idea either.

I'm not really a linux newbie (about 4 years in), but it seems like a newbie question that I've never answered.

Thanks,
Bill
 
Old 07-15-2008, 06:48 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Just install your version under a different prefix than the RPM installs it. I would guess the RPM installs to the /usr prefix. When you configure ffmpeg, specify /usr/local or even your home directory. Something like this
Code:
./configure --prefix=/usr/local --enable-shared --enable-pthreads --enable-gpl --disable-ffplay
Add any other options you'd like.

To use ffmpeg, either execute it with the absolute path (/usr/local/bin/ffmpeg) or make sure /usr/local/bin precedes /usr/bin in your $PATH variable.

Last edited by weibullguy; 07-15-2008 at 06:49 PM.
 
Old 07-15-2008, 06:48 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by jungle View Post
I do know about " rpm -e --nodeps ffmpeg", but I'm kindof afraid that will break something. I tried that approach for adding utf-8 support to pcre so i could compile a different program, and I ended up re-installing the rpm after a couple trying hours.

Is there a good way to do this? Can I just install over the original? that doesn't seem like a good idea either.
You can remove old packages either way --nodeps -e or install over the original using --upgrade. Your main problem is going to be that when you install a later version of a software package it may also demand later versions of its dependencies.

To keep the dependency problem in hand you should always install using rpm. If you have to use source tarballs then you should use checkinstall to create a rpm package from the source and then install the rpm package.

http://www.asic-linux.com.mx/~izto/checkinstall/

--------------------
Steve Stites
 
Old 07-15-2008, 07:46 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
The easiest way out is to upgrade. Nobody likes to hear it, but there it is. If you cannot upgrade every year(Fedora's current schedule)consider a different distro. When support was dropped for FC5 I moved all my servers over to Centos5. Centos is RHEL with the logos removed. It has a long support life (5+years), is free to download/update, and is rock solid. It also "feels" very much like FC6.
 
Old 07-15-2008, 08:22 PM   #5
jungle
LQ Newbie
 
Registered: Aug 2004
Posts: 19

Original Poster
Rep: Reputation: 0
to clarify. "install over the original" should have read something like: "compile the source code and 'make install' so that the rpm's files will be overwritten by the newly compiled files. the rpm will not be uninstalled". That's what didn't seem like a good idea to me.

checkinstall is amazing. I'm using it now. I hope everything works.

it turns out that ffmpeg didn't have any prereqs after all. so in this case, it wasn't a problem. will a yum install a checkinstall rpm to upgrade a repository rpm?

bill
 
Old 07-15-2008, 09:38 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by jungle View Post

will a yum install a checkinstall rpm to upgrade a repository rpm?
yum cannot tell the difference between a checkinstall created rpm and one created by Fedora. yum does a fair bit of work checking dependencies and it may reject the checkinstall created rpm because of dependency conflicts that yum cannot resolve. If you get into dependency hell then it is easier to work your way out of it using rpm than yum because you have more options available with rpm than with yum.

-------------------------
Steve Stites
 
  


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
major problems in compiling and installing rpms krkda Mandriva 4 02-11-2006 10:23 AM
Replacing a Council's software architecture with open source d00bid00b Linux - Software 2 11-21-2005 08:05 PM
Compiling programs from source rpms coolfrog Linux - General 1 09-10-2004 04:17 PM
If you're having problems regarding stability, compiling source,or RPMS read This! Eagle_Y Mandriva 0 05-28-2004 05:26 PM
error during compiling rpms using rpmbuild jogurt666 Red Hat 4 11-04-2003 07:47 AM


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