LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-03-2009, 02: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, 02:32 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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, 06:02 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 07:33 PM   #4
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
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-03-2009, 11:33 PM   #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, 01: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, 10:23 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

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



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

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

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