/
steps_detailed.txt
85 lines (56 loc) · 3.66 KB
/
steps_detailed.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#openssl
>> download openssl tar file.
>> untar it, go to it's directory
>>$./config --prefix=/path/to/installation/openssl
$make -j
$make install -j
## libssl.1.1 error, mostly because path to the shared library isn't specified
## export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
#libffi
>> download libffi tar file.
>> untar it, go to it's directory
>>$./configure --prefix=/path/to/installation/libffi
$make -j
$make install
##### during installation.
$libffi='/path/to/libffi'
$./configure \
LDFLAGS="-L${libffi}/lib64 -Wl,--rpath=${libffi}/lib64" \
CFLAGS="-I${libffi}/include" \
PKG_CONFIG_PATH="${libffi}/lib/pkgconfig"
##it's because ./configure couldn't find libffi for some reason. DO IMPLEMENT DURING PYTHON INSTALLATION
#bzip2
>> download bzip2 tar file.
>> untar it, go to it's directory
>> search "Makefile", edit a line in the file from "CC=gcc" to "CC=gcc -fPIC"
>>$make -j #directly, no configure
>>$make install PREFIX=/path/to/installation/bzip
#zlib
>> download zlib tar file.
>> untar it, go to it's directory
$./configure --prefix/path/to/installation/zlib
$make -j
$make install -j
#xz-devel #it is because xarray import shower error _lzma couldn't be imported!!
download rpm package,
rpm2cpio xz-5.2.2-1.el7.src.rpm | cpio -id
>> you'll see a tar.gz file. >> untar it
./configure --prefix=/path/to/installation/xz
make -j 2
make install -j 2
########do same for sqlite and gdbm
#python
>> download python3.x tar file
>> untar it, go to it's directory
>> go to Modules directory, check file "Setup"
open and edit the ssl path. zlib, uncomment all.
$./configure --prefix=/home/rksahu/programs/python --with-openssl=/home/rksahu/programs/openssl/ LDFLAGS='-L/home/rksahu/programs/libffi/lib64 -L/home/rksahu/programs/bzip2/lib -L/home/rksahu/programs/zlib/lib' CFLAGS="-I/home/rksahu/programs/bzip2/include" CPPFLAGS='-I/home/rksahu/programs/zlib/inlude' --enable-optimizations
make -j
make install
modified, >>successfully installed in hpc, (by success, i mean the _ctypes modules installation issue resolved). July-19-23
$ ./configure --prefix=/home/rksahu/programs/python --with-openssl=/home/rksahu/programs/openssl/ LDFLAGS='-L/home/rksahu/programs/libffi/lib64 -L/home/rksahu/programs/bzip2/lib -L/home/rksahu/programs/zlib/lib' CFLAGS="-I/home/rksahu/programs/bzip2/include" CPPFLAGS='-I/home/rksahu/programs/zlib/inlude' LDFLAGS="-L${libffi}/lib64 -Wl,--rpath=${libffi}/lib64" CFLAGS="-I${libffi}/include" PKG_CONFIG_PATH="${libffi}/lib/pkgconfig"
#note the additional commands after CPPFLAGS, in the later, they're to ensure that the libffi library is pathed correctly.
##further >>>>> tried to do. but not successfully, make corresponding changes in .bashrc, and Setup of Python3.?/Module
like commenting,uncommenting stuffs
####to add sqlite, gdbm, xz-dev utils
./configure --prefix=/home/rksahu/programs/python --with-openssl=/home/rksahu/programs/openssl/ LDFLAGS='-L/home/rksahu/programs/libffi/lib64 -L/home/rksahu/programs/bzip2/lib -L/home/rksahu/programs/zlib/lib' CFLAGS="-I/home/rksahu/programs/bzip2/include" CPPFLAGS='-I/home/rksahu/programs/zlib/inlude' LDFLAGS="-L${libffi}/lib64 -Wl,--rpath=${libffi}/lib64" CFLAGS="-I${libffi}/include" PKG_CONFIG_PATH="${libffi}/lib/pkgconfig" LDFLAGS="-L${xz}/lib64 -Wl,--rpath=${xz}/lib64" CFLAGS="-I${xz}/include" PKG_CONFIG_PATH="${xz}/lib/pkgconfig" LDFLAGS="-L${gdbm}/lib64 -Wl,--rpath=${gdbm}/lib64" CFLAGS="-I${gdbm}/include" PKG_CONFIG_PATH="${gdbm}/lib/pkgconfig" LDFLAGS="-L${sqlite}/lib64 -Wl,--rpath=${sqlite}/lib64" CFLAGS="-I${sqlite}/include" PKG_CONFIG_PATH="${sqlite}/lib/pkgconfig"