LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install fedora 7 rpm in redhat EL 5 ? (https://www.linuxquestions.org/questions/linux-newbie-8/install-fedora-7-rpm-in-redhat-el-5-a-752477/)

rajevar 09-03-2009 02:01 PM

install fedora 7 rpm in redhat EL 5 ?
 
hi,

is it ok to install fedora 7 rpm package on Redhat eL5 ? I need to install python-mysqldb on my machine and i couldn't find any rpm package for EL5. i found is few rpms for Fedora 7. is it same as that for EL5 ? Installing the module from source seems to be pretty complicated, it has dependency to other modules and i dont have it all installed in the system.

any help on this is appreciated.

thanks,
RR

MensaWater 09-03-2009 02:32 PM

Are you sure you're not looking for "MySQL-python"? That should be available in the RHEL repositories.

It's not a good idea to try to load RPM for one platform on another simply because the dependencies are usually going to look for other RPMs made for the original platform. You're much better off taking the source and compiling it yourself.

For most source packages it really isn't that difficult. Just 4 steps usually:
1) Download the source package.
2) Run configure in the source directory.
3) Run make in the source directory.
4) Run make install in the source directory.

Of course there are variations so you do want to read what they say (look for readme files especially after the download) before you start.

chrism01 09-03-2009 06:02 PM

I agree; double check the repos, I'd be surprised if there isn't something like that available.
Failing that, phone RH and ask. I'd recommend against installing by hand, and especially from other distros. RH will not support that.

John VV 09-03-2009 07:33 PM

the short answerer it NO , with a tentative yes/maybe

some fedora 7,8,9 rpm's will work run in CentOS 5.3 . I have a few installed
GAMES mostly( one font too) with ONLY 1 or NO dependencies .


and sometimes a new cent package MAY install something that changes the fedora7 dependency
or yum MIGHT update the fedora7 rpm with a cent.el5 rpm


be very careful doing that

and DO NOT EVEN TRY with MySql

rajevar 09-03-2009 11:33 PM

appreciate your replies !! I spoke to few people and no-one recommends installing fedora package on RHEL.


Are you sure you're not looking for "MySQL-python"?


i have to double check that.. all is want is avoid "import MySQLdb" error from python, if i execute import from python it says module not found error. i will keep this updated on my findings.

thanks again for the replies.

- RR

rajevar 09-24-2009 01:06 PM

there was some issue with the devel package, had to uninstall devel first, install it again and i installed mysql-python from the source

thanks all :)

lazlow 09-24-2009 10:23 PM

Mysql-python is in the standard el5 repos.

Quote:

[fred@localhost ~]$ yum info mysql-python
Loaded plugins: fastestmirror, protectbase
0 packages excluded due to repository protections
Available Packages
Name : MySQL-python
Arch : x86_64
Version : 1.2.1
Release : 1
Size : 84 k
Repo : base
Summary : An interface to MySQL
URL : http://sourceforge.net/projects/mysql-python/
License : GPL
Description: Python interface to MySQL MySQLdb is an interface to the popular
: MySQL database server for Python. The design goals are: -
: Compliance with Python database API version 2.0 - Thread-safety
: - Thread-friendliness (threads will not block each other) -
: Compatibility with MySQL 3.23 and up This module should be mostly
: compatible with an older interface written by Joe Skinner and
: others. However, the older version is a) not thread-friendly, b)
: written for MySQL 3.21, c) apparently not actively maintained. No
: code from that version is used in MySQLdb. MySQLdb is distributed
: free of charge under a license derived from the Python license.



All times are GMT -5. The time now is 03:54 PM.