LinuxQuestions.org
Register a domain and help support LQ
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 09-03-2009, 03:01 PM   #1
rajevar
LQ Newbie
 
Registered: Aug 2009
Posts: 20

Rep: Reputation: 0
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
 
Old 09-03-2009, 03:32 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,681
Blog Entries: 14

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
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.
 
Old 09-03-2009, 07:02 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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.
 
Old 09-03-2009, 08:33 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
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
 
Old 09-04-2009, 12:33 AM   #5
rajevar
LQ Newbie
 
Registered: Aug 2009
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 09-24-2009, 02:06 PM   #6
rajevar
LQ Newbie
 
Registered: Aug 2009
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 09-24-2009, 11:23 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
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.
 
  


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
RPM Fedora Work With RedHat davidedwardgill Red Hat 5 05-30-2008 01:05 PM
Fedora & redhat How similar? [porting Fedora install script to Redhat] Four Linux - General 1 02-21-2008 06:56 PM
install nvtv on fedora core 5, cant find rpm, cant make install... zeltak Linux - Software 2 01-26-2007 10:21 AM
new to redhat/fedora. rpm question skog Fedora 6 11-07-2004 03:27 AM
will ooffice 1.1.1 rpm for fedora work on Redhat 9? coolamit78 Linux - Software 3 04-16-2004 12:17 AM


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