Differences between revisions 2 and 3
Revision 2 as of 2018-01-11 10:38:43
Size: 4850
Editor: PJJung
Comment:
Revision 3 as of 2018-01-11 10:46:39
Size: 12
Editor: PJJung
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
=== 1. Upgrade to Python 2.7.14 ===

https://gist.github.com/dalegaspi/dec44117fa5e7597a559

{{{
$ sudo yum update # update yum
$ sudo yum install centos-release-scl # install SCL
$ sudo yum install python27 # install Python 2.7

$ scl enable python27 bash

$ cd /opt/rh/python27/root/usr/bin/ # cd to the directory where SCL installs python
$ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./easy_install-2.7 pip

$ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./pip2.7 install requests
}}}

==== or Check below link! ====

https://qiita.com/Hiroyama-Yutaka/items/8a52d54819a0923436a7

https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/

{{{
$ yum update
$ yum groupinstall -y "development tools”
$ yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel
$ yum install -y wget
}}}

==== Manually ====

{{{
$ wget http://python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz
$ tar xf Python-2.7.14.tar.xz
$ cd Python-2.7.14
$ ./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" ## passing --enable-unicode=ucs4
$ make && make altinstall

$ strip /usr/local/lib/libpython2.7.so.1.0
}}}

==== If you were faced with yum error, Check the below link! ====

Modifying #!/usr/bin/python to #!/usr/bin/python2.6 in /usr/bin/yum


and addition below PATH in .bashrc

{{{
$ vi .bashrc

export PATH=$PATH:/usr/local/bin/
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/usr/local/lib/python2.7/site-packages/
~
}}}


=== 2. pip install ===

https://medium.com/back-to-basics-project/how-to-install-pip-on-centos-6-8-b7453fef63e3

{{{
$ sudo yum install epel-release
$ sudo yum -y install python-pip
}}}

==== If you were faced with detuptool error, Check the below link! ====

https://zetawiki.com/wiki/리눅스_pip,_easy_install_정상화/
https://financedata.github.io/posts/faq_pip_packge_fail.html


=== 3. iPython install using pip ===

{{{
$ sudo pip install ipython
}}}


=== 4. swig install ===

==== Use yum ====

{{{
$ sudo yum install swig
$ sudo yum install python-devel
}}}

==== Manually ====

http://www.swig.org/download.html

{{{
$ ./configure
$ sudo make -j 2
$ sudo make install
}}}


=== 5. LAL install ===

==== Basically ====

{{{
$ wget http://software.ligo.org/lscsoft/scientific/7/x86_64/production/lscsoft-production-$ config-1.3-1.el7.noarch.rpm
$ sudo rpm -ivh lscsoft-production-config-1.3-1.el7.noarch.rpm
$ sudo yum clean all
$ sudo yum makecache

$ sudo yum install lal
$ sudo yum install lal-python
}}}


==== Manually ====

{{{
$ wget wget http://software.ligo.org/lscsoft/source/lalsuite/lal-6.18.0.tar.xz
$ tar -xf lal-6.18.0.tar.xz
$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
$ export PATH=/usr/local/bin:$PATH
$ export PYTHONPATH=$PYTHONPATH:/usr/local/bin/

$ ./configure --prefix=/usr/local/ --enable-swig-python
$ make -k check
$ sudo make -j 2
$ sudo make install
}}}

{{{
==================================================
LAL has now been successfully installed.
Now you may want to set up your environment.
For Bourne shells (e.g. bash), run this command:
  . /usr/local/etc/lal-user-env.sh
or add it to ~/.profile.
For C shells (e.g. tcsh), run this command:
  source /usr/local/etc/lal-user-env.csh
or add it to ~/.login.
For the fish shell, run this command:
  . /usr/local/etc/lal-user-env.fish
or add it to ~/.config/fish/config.fish.
==================================================
}}}

and addition below PATH in .bashrc

{{{
source /usr/local/etc/lal-user-env.sh
}}}


=== 6. LAL Suite install ===

==== <Install GSL> ====

https://centos.pkgs.org/6/centos-x86_64/gsl-1.13-1.el6.x86_64.rpm.html
 
{{{
$ yum install gsl
}}}


==== <Install MataIO Lib.> ====

https://www.lsc-group.phys.uwm.edu/daswg/projects/metaio.html

{{{
$ wget http://software.ligo.org/lscsoft/source/metaio-8.2.tar.gz
$ tar -zxvf metaio-8.2.tar.gz
$ cd metaio-8.2
$ ./configure
$ sudo make
$ sudo make install
}}}


==== <Install HDF5 Lib.> ====

https://support.hdfgroup.org/HDF5/release/obtainsrc.html#conf

{{{
$ sudo yum install hdf5 hdf5-devel
}}}

Check version

{{{
$ h5cc -showconfig
}}}

==== <Install LAL Suite Master> ====

http://smirshekari.wikidot.com/lal

{{{
$ git clone https://git.ligo.org/lscsoft/lalsuite.git
$ ./00boot
$ ./configure --prefix=/usr/local/ --enable-swig-python
$ sudo make -j 2
$ sudo make install
}}}


=== 7. gwpy install ===

{{{
$ sudo pip install gwpy
}}}


=== Successfully Installed ===
DeletePage

gwpy/log (last edited 2018-01-11 10:49:19 by PJJung)