Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-18-2013, 09:02 AM
|
#1
|
Member
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351
Rep:
|
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.
|
|
|
12-18-2013, 09:43 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,958
|
you can install python (your own build) anywhere you want (and leave the original intact).
|
|
|
12-18-2013, 09:57 AM
|
#3
|
Member
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351
Original Poster
Rep:
|
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.
|
|
|
12-18-2013, 10:09 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,456
|
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...
|
|
|
12-18-2013, 11:21 AM
|
#5
|
Member
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351
Original Poster
Rep:
|
@ponce, no, (un)fortunately no. It is another kind of TS-player from here, but they redistribute only packages for Ubuntu
|
|
|
12-20-2013, 05:03 AM
|
#6
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Quote:
Originally Posted by FeyFre
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.
|
|
|
All times are GMT -5. The time now is 04:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|