-
Notifications
You must be signed in to change notification settings - Fork 0
/
CentOS7_Python27.txt
94 lines (74 loc) · 3.3 KB
/
CentOS7_Python27.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
CentOS 7:
https://github.com/mishamosher/CentOS-WSL/releases/tag/8.4-2105
-Extract all to c:\apps
-Run CentOS7 as administrator
-Run CentOS7 as administrator again
-ATRT EXISTING SOFTWARE SETUP
[root@JLAP]# yum -y update
[root@JLAP]# sudo yum install nano
[root@JLAP]# sudo yum install python27
[root@JLAP]# sudo yum install wireshark
[root@JLAP]# sudo yum install wireshark-gnome
[root@JLAP]# sudo yum install pygtk2
[root@JLAP]# sudo yum install gtk2
[root@JLAP]# sudo yum install gtk2-devel
[root@JLAP]# sudo yum install gtk3
[root@JLAP]# sudo yum install xorg-x11-apps
-ADD USER WITH PRIVILIGES
[root@JLAP]# useradd jjs22
[root@JLAP]# passwd jjs22
[root@JLAP]# usermod -aG wheel username
-SETUP DISPLAY
[jjs22@StearnsDesktop ~]$ vi .bashrc
Add line to end: export DISPLAY=192.168.1.111:0.0
INSTALL WHEEL:
Repo: https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl
[jjs22@StearnsDesktop ~]$ sudo pip2 install wheel
INSTALL TAR FROM SETUP.PY:
[jjs22@StearnsDesktop ~]$ sudo python2.7 setup.py install
INSTALL WHEEL FILE:
[jjs22@StearnsDesktop ~]$ python2 pip-10.0.1-py2.py3-none-any.whl/pip install --no-index PySimpleGUI27-2.4.1-py3-none-any.whl
PowerShell:
c:\Apps\CentOS7> CentOS7.exe config --default-user jjs22
$ sudo yum list installed|more
$ yum install wireshark
Python Installed Modules:
$ python2.7
>>> help("modules")
INSTALL PYSHARK & DEPENDENCIES:
TarBalls or Wheels:
pyshark-legacy-0.3.8.tar.gz
trollius-2.1-py2-none-any.whl
Logbook-1.5.3.tar.gz
py-1.11.0-py2.py3-none-any.whl
[jjs22...] tar xvf pyshark-legacy-0.3.8.tar.gz
[jjs22...] cd pyshark-legacy-0.3.8
[jjs22...] sudo python setup.py install
[jjs22...] sudo python setup.py install
Offline Wheel Failure:
Could not find a version that satisfies the requirement futures /simple/futures
ActiveTcl:
% ./configure --with-tcltk-includes='-I/opt/ActiveTcl-8.6/include' --with-tcltk-libs='-L/opt/ActiveTcl-8.6/lib' --with-openssl=/opt/openssl
LDFLAGS='-L/opt/openssl/lib' CFLAGS='-=I/opt/openssl/include,-Wl,-rpath,/opt/openssl/lib'
--enable-optimizations
#--with-tcltk-libs='-L/opt/ActiveTcl-8.6/lib/libtcl8.6.so /opt/ActiveTcl-8.6/lib/libtk8.6.so'
% make
% make altinstall
configure:10302: checking for --with-tcltk-includes
configure:10312: result: default
configure:10314: checking for --with-tcltk-libs
configure:10324: result: default
INFO: Can't locate Tcl/Tk libs and/or headers
warning: building with the bundled copy of libffi is deprecated on this platform. It will not be distributed with Python 3.7
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _lzma
_sqlite3 _ssl _tkinter
readline
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
atexit pwd time
sudo yum localinstall libffi-devel-3.0.13-19.el7.x86_64.rpm
./config --prefix=/opt/openssl --openssldir=/usr/local/ssl