centos 5.5 버전에는 python 버전이 2.4 버전이다
yum으론 2.6 이상 버전으로 업그레이드 불가능하다.
아래와 같이 진행하면 된다.
[root@localhost tmp]# wget python.org/ftp/python/2.6.6/Python-2.6.6.tgz
--2013-05-28 11:21:09-- http://python.org/ftp/python/2.6.6/Python-2.6.6.tgz
Resolving python.org... 82.94.164.162, 2001:888:2000:d::a2
Connecting to python.org|82.94.164.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13318547 (13M) [application/x-tar]
Saving to: `Python-2.6.6.tgz.1'
100%[======================================================================================>] 13,318,547 3.45M/s in 6.6s
2013-05-28 11:21:17 (1.92 MB/s) - `Python-2.6.6.tgz.1' saved [13318547/13318547]
[root@localhost tmp]# tar -xvf blas.tgz
[root@localhost tmp]#tar -xvf scipy-0.10.0.tar.gz
[root@localhost tmp]#cd scipy-0.10.0.tar.gz
[root@localhost scipy-0.10.0]#python setup.py build --fcompiler=gnu95
[root@localhost scipy-0.10.0]#python setup.py install --prefix=~/.local
[error1]
설치하다가 블라 블라 하면서
Traceback (most recent call last):
File "setup.py", line 165, in <module>
setup_package()
File "setup.py", line 161, in setup_package
configuration=configuration)
File "/root/.local/lib/python2.6/site-packages/numpy/distutils/core.py", line 152, in setup
config = configuration()
File "setup.py", line 136, in configuration
config.add_subpackage('scipy')
File "/root/.local/lib/python2.6/site-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage
caller_level = 2)
File "/root/.local/lib/python2.6/site-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage
caller_level = caller_level + 1)
File "/root/.local/lib/python2.6/site-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/setup.py", line 13, in configuration
config.add_subpackage('linalg')
File "/root/.local/lib/python2.6/site-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage
caller_level = 2)
File "/root/.local/lib/python2.6/site-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage
caller_level = caller_level + 1)
File "/root/.local/lib/python2.6/site-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/linalg/setup.py", line 30, in configuration
if needs_g77_abi_wrapper(lapack_opt):
File "/tmp/scipy-0.12.0/scipy/_build_utils/_fortran.py", line 29, in needs_g77_abi_wrapper
elif _uses_mkl(info) and sys.platform == "darwin":
File "/tmp/scipy-0.12.0/scipy/_build_utils/_fortran.py", line 19, in _uses_mkl
if r_mkl.search(library):
TypeError: expected string or buffer
'Linux' 카테고리의 다른 글
CentOS 6.3 Installation on Software RAID 0 (0) | 2013.06.17 |
---|---|
rsync 사용법[대역폭,날짜,폴더,파일크기등) (0) | 2013.06.12 |
canopy(scipy,numpy) 설치방법 공학계산기 리눅스용 (0) | 2013.05.28 |
centos 5.x install subversion 1.7.x (0) | 2013.05.21 |
Cannot find a valid baseurl for repo: rpmforge Error: Cannot find a valid baseurl for repo: rpmforge (0) | 2013.05.21 |