Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to manually pass source of bzip2 install for Python install?
    primarykey
    data
    text
    <p>I've been through several StackOverflow questions about Python &amp; bzip2. These have been very helpful in getting me to the state I'm clearly at now. Here's what I've done so far and the problem I'm having:</p> <ul> <li>I do <strong>not</strong> have root access and cannot install libbz2-dev(el)</li> <li>/usr/bin/bzip2 is version 1.0.3</li> <li>/usr/bin/python is version 2.4.3</li> <li><a href="http://www.gnu.org/software/stow/" rel="nofollow">GNU Stow</a> is being used to manage libraries similar to how homebrew works</li> </ul> <p>I need Python 2.7.3 to install with the bzip2 module in order to properly compile node.js from source. And yes, I'm sorry, but I do actually have to do all of this as a regular user from source.</p> <p>I have installed bzip2 from source as follows:</p> <pre><code>$ make -f Makefile-libbz2_so $ make $ make install PREFIX=${STOW}/bzip2-1.0.6 $ cp libbz2.so.1.0.6 ${STOW}/bzip2-1.0.6/lib/ $ cd ${STOW}/bzip2-1.0.6/lib $ ln -s libbz2.so.1.0.6 libbz2.so.1.0 $ cd ${STOW} $ stow bzip2-1.0.6 </code></pre> <p>I have stow's root directory in my PATH before anything else, so this results in:</p> <pre><code>$ bzip2 -V # [...] Version 1.0.6 </code></pre> <p>Which indicates that the correct bzip2 is being utilized in my PATH.</p> <p>Next I move on to compiling Python from source and run the following:</p> <pre><code>$ cd Python-2.7.3 $ ./configure --prefix=${STOW}/Python-2.7.3 $ make # Complains about several missing modules, of which "bz2" is the one I care about $ make install prefix=${STOW}/Python-2.7.3 # unimportant as bz2 module failed to install </code></pre> <p>What is the correct way to tell Python during it's source configuration where the source installed bzip 1.0.6 library lives so it will detect the bzip2 devel headers and install the module properly?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload