How do you assign bz2 to an altinstall of python?

后端 未结 3 899
面向向阳花
面向向阳花 2021-01-03 07:11

I\'m using redhat 5.8, which comes with python 2.4 installed automatically, but I\'m using a python package that requires python 2.6 or higher. SO, I installed python 2.7 a

3条回答
  •  走了就别回头了
    2021-01-03 07:27

    The other answers provided are useful and helpful, but this is how I got this to work.

    The problem wasn't that Python wasn't finding the files (as I thought), it just couldn't use them properly. So, I vi'ed into the Makefile for bzip2, found the line that looked like this:

    CFLAGS= -Wall -Winline -O2 -g $(BIGFILES)
    

    and added -fPIC to the line like so:

    CFLAGS=-fPIC -Wall -Winline -O2 -g $(BIGFILES)
    

    and WHALA! It compiled just fine.

提交回复
热议问题