LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-18-2013, 09:02 AM   #1
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Question Rebuilding python w/ other flags. Any problems to expect?


Hello

Recently I got task to setup 3rd party software to run on different Linux distros, including Slackware.

The problem is: it uses python, and when I start it I got message of unresolved symbol PyUnicodeUCS4_DecodeUTF8

Well, solution is to rebuild python with extra flag --enable-unicode=ucs4 . So I did it - modified original slackbuild, rebuilt and installed new package(replaced original python). Now I have not such error, but:

Should I except problems? Sure.

Question: is there any tool which allows me examine binaries (so's and executables) for unresolved symbols? ldd doesn't works here, because it is stupid enough to check library names only, but to not ensure all required symbols imported(it failed to show me absence of unresolved symbol when I ldd-ed each and every binary file of package). I need them because new python lacks of PyUnicodeUCS2_DecodeUTF8, and it can be problem for other software.

Or alternative: how I can isolate software and reconfigured python so do not influence system and vice versa?

PS: 3rd party software does not provides sources. All I have received from stupid developers is a few Ubuntu-specific(sick) .deb packages(actually I received deb repo link), which I unar-untar-ungzip-ed merged and makepkg-ed into .txz, so all I can do is change environment, not package itself.
 
Old 12-18-2013, 09:43 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,958

Rep: Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882Reputation: 7882
you can install python (your own build) anywhere you want (and leave the original intact).
 
Old 12-18-2013, 09:57 AM   #3
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
No, I can't. All I can to do is 'installpkg --root /path/to/somewhere/else python*.t?z', i.e. install it into offline system. It gives me nothing.
 
Old 12-18-2013, 10:09 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,456

Rep: Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416
https://www.linuxquestions.org/quest...rt-4175473344/

according to the googling I have done at the time of this other thread, I suppose you're using IBM's cplex...
 
Old 12-18-2013, 11:21 AM   #5
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
@ponce, no, (un)fortunately no. It is another kind of TS-player from here, but they redistribute only packages for Ubuntu
 
Old 12-20-2013, 05:03 AM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Quote:
Originally Posted by FeyFre View Post
Or alternative: how I can isolate software and reconfigured python so do not influence system and vice versa?
Install the rebuilt python package in some other location. Use wrapper scripts to launch the programs that need to use that rebuilt version. Those scripts set the PATH environmental variable to have /path/to/somewhere/else/usr/bin at the front of the list prior to running whatever it is that needs python.

If your normal environment has the environmental variable PYTHONPATH set, then you'll need to change that in a similar fashion.

This discussion of python virtual environments can give you an idea of what has to be changed to get things to work (since that's what virtualenv has to do when you set it up). There's a slackware package of virtualenv available at slackbuilds.org.
 
  


Reply

Tags
dependencies, python, slackware, unicode, unresolved


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
[root@fugo trace]# sh expect.sh expect.sh: line 9: expect: command not found sivaloga Linux - Kernel 1 08-22-2013 04:29 AM
Python Help: Regular expressions not behaving as I might expect Dogs Programming 3 02-05-2011 02:09 AM
LXer: Basics 101: ruby python bash perl expect php, How do the exact same thing in th LXer Syndicated Linux News 0 10-05-2008 06:00 AM
What means: ...proper Python link flags? BroX Linux - Software 5 04-21-2004 09:40 PM
Problems Rebuilding a kernel slayer0605 Linux - General 4 02-28-2003 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration