Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
data_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b405c57c
authored
Aug 25, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add ssl
parent
412d9cfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
install.sh
install.sh
View file @
b405c57c
...
...
@@ -32,6 +32,49 @@ ln -s /usr/local/python3.8/bin/pip3.8 /usr/bin/pip3.8
# 解决 pip ssl 报错的问题
#/usr/bin/pip3.8 install pika -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
# 解决 python3.8 没有 ssl模块的问题 (无法import ssl)
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar
-zxvf
openssl-1.1.1g.tar.gz
cd
openssl-1.1.1g
./config
--prefix
=
/usr/local/openssl
make
make install
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl/ /usr/include/openssl.bak
ln
-s
/usr/local/openssl/include/openssl /usr/include/openssl
ln
-s
/usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so
ln
-s
/usr/local/openssl/bin/openssl /usr/bin/openssl
echo
"/usr/local/openssl/lib"
>>
/etc/ld.so.conf
ldconfig
-v
openssl version
export
LDFLAGS
=
" -L/usr/local/openssl/lib"
export
CPPFLAGS
=
" -I/usr/local/openssl/include"
export
PKG_CONFIG_PATH
=
"/usr/local/openssl/lib/pkgconfig"
#重新安装 python3.8
./configure
--enable-shared
--with-openssl
=
/usr/local/openssl
--prefix
=
/usr/local/python3.8
make
make altinstall
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment