LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-02-2019, 12:25 AM   #1
Thiciathy
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
option conflicts between FPM and ./configure?


Short version- trying to use FPR to make an RPM and the --python-blahblahblah flags seem to not be working. I think they are being overwritten by something else and I'm hoping someone who understands package management better than I do (not hard) can suggest a culprit

Long version- I'm putting together some rpms to allow for installation of some custom python builds across a number of CentOS5 and 6 servers. I can't mess with the system python. I'm using FPM to make the RPMs out of tgz files downloaded directly from python.org and have set some flags to keep the installs confined to a specific folder (call it "/opt/abc/Python-[ver]" where ver is either 2.7 or 3.5)

BTW, I have some background in linux but not a lot so I apologize if I get any of the terminology wrong mypascoconnect.

All of that is working but I noticed the bin file is ending up in the wrong place (in /opt/abc/ instead of in /opt/abc/Python-[ver]/) and a request was made to change the --python-package-name-prefix flag for FPM from the default of 'python' to a custom ex. 'ourpython'. To try and fix the bin issue I used the --python-install-bin flag on FPM.

neither of those FPM flags seemed change the install behavior at all, so far as I can tell. I suspect the effects are getting overwritten by one of the other flags set either in the fpm command or in the ./configure command but I just don't know package management well enough to say.

Here's the list of commands used:

Quote:
sudo fpm -s tar --prefix /opt/abc -t rpm -p ~/Python2.7.12.rpm --python-package-name-prefix ourpython --python-install-bin /opt/abc/Python-2.7.12/bin/ Python-2.7.12.tar

sudo yum install ~/Python2.7.12.rpm

sudo ./configure --prefix=/opt/abc

sudo make

sudo make altinstall
The bolded parts are the ones I think likely to be overriding the --python flags (italicized because why not?). Am I right about that?

Last edited by Thiciathy; 12-07-2019 at 12:14 AM.
 
Old 12-02-2019, 04:34 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,329

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Building RPMs is not for the faint of heart. It is VERY, VERY messy and obtuse and Devs have to show each other on occasion.

So if as a comparative novice, you're failing, well that's fairly normal. Probably check your homework. I don't think you can build an rpm for more than one OS or architecture at a time. It will have to specify which python, etc.

Using a tgz is much simpler. Also using pip to install it.

Last edited by business_kid; 12-02-2019 at 04:37 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with dependencies when installing php70-fpm. I have newer versions of the dependencies installed, but php70-fpm requires older KurtisKewl *BSD 9 05-02-2017 01:23 PM
option conflicts between FPM and ./configure? 011121 Linux - General 0 07-13-2016 11:49 PM
LXer: How-to install & configure LEMP (Linux, Nginx, MariaDB/MySQL and PHP-FPM) on a CentOS 7 VPS LXer Syndicated Linux News 0 05-11-2015 01:40 PM
LXer: Install and configure Nginx, MariaDB & PHP-FPM in CentOS 7 (RHEL7) LXer Syndicated Linux News 0 08-25-2014 07:42 PM
kernel26-firmware conflicts with linux-firmware conflicts with nvidia-96xx Bratmon Arch 3 06-26-2010 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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