Dockerfile
RUN apt-get update -y
RUN apt-get install -y libssl-dev
RUN cd /tmp/ && rm -rf ./swoole-src
&& curl -o ./swoole.tar.gz https://github.com/swoole/swoole-src/archive/master.tar.gz -L
&& tar zxvf ./swoole.tar.gz
&& mv swoole-src* swoole-src
&& cd swoole-src
&& phpize
&& ./configure –enable-openssl –with-openssl-dir=/usr/lib/ssl –enable-http2
&& make && make install
&& docker-php-ext-enable swoole
Although openssl has been installed, but the corresponding libs are missing, looking for half a day to know the need to install libssl-dev (centos is openssl-devel)
openssl version -a
Read More:
- fatal error: openssl/bio.h: No such file or directory settlement programme
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- fatal error: Python.h: No such file or directory
- Fatal error in CentOS: Python. H: no that file or directory
- fatal error: Python.h: No such file or directory
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- [C]fatal error: mysql.h: No such file or directory
- fatal error: Python.h: No such file or directory compilation terminated.
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- [Caffe] fatal error: hdf5.h: No such file or directory error solution
- RCurl error-fatal error: curl/curl.h: No such file or directory
- Linux QT download / usr / include / C + + / 7/ cstdlib:75 : 15: fatal error: stdlib. H: no such file or directory error
- Solve the problem of copy failed: stat / var / lib / docker / TMP / docker builder 455335933 / opt: no such file or directory
- Docker load loading mirror message JSON no such file or directory error
- Error: libipq. H: no such file or directory solution
- caffe deep learning [three] compilation error: fatal error: hdf5.h: No such file or directory compilation terminated.
- Cannot open include file: ‘io.h‘: No such file or directory
- A fatal error C1083 occurred when compiling C + + code under. Net: unable to open the include file: “xuhk”_ Jnihelloworld. H “: solution to no such file or directory error.
- 【linux】error: stdio.h: No such file or directory
- When installing pyaudio, an error is reported: failed error: portaudio. H: there is no such file or directory