{"action":"created","issue":{"url":"https://api.github.com/repos/swoole/swoole-src/issues/1859","repository_url":"https://api.github.com/repos/swoole/swoole-src","labels_url":"https://api.github.com/repos/swoole/swoole-src/issues/1859/labels{/name}","comments_url":"https://api.github.com/repos/swoole/swoole-src/issues/1859/comments","events_url":"https://api.github.com/repos/swoole/swoole-src/issues/1859/events","html_url":"https://github.com/swoole/swoole-src/issues/1859","id":346846509,"node_id":"MDU6SXNzdWUzNDY4NDY1MDk=","number":1859,"title":"[Bug] make fail, require openssl library","user":{"login":"diyism","id":1744399,"node_id":"MDQ6VXNlcjE3NDQzOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1744399?v=4","gravatar_id":"","url":"https://api.github.com/users/diyism","html_url":"https://github.com/diyism","followers_url":"https://api.github.com/users/diyism/followers","following_url":"https://api.github.com/users/diyism/following{/other_user}","gists_url":"https://api.github.com/users/diyism/gists{/gist_id}","starred_url":"https://api.github.com/users/diyism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diyism/subscriptions","organizations_url":"https://api.github.com/users/diyism/orgs","repos_url":"https://api.github.com/users/diyism/repos","events_url":"https://api.github.com/users/diyism/events{/privacy}","received_events_url":"https://api.github.com/users/diyism/received_events","type":"User","site_admin":false},"labels":[{"id":1013396274,"node_id":"MDU6TGFiZWwxMDEzMzk2Mjc0","url":"https://api.github.com/repos/swoole/swoole-src/labels/installation","name":"installation","color":"1d76db","default":false},{"id":1013702812,"node_id":"MDU6TGFiZWwxMDEzNzAyODEy","url":"https://api.github.com/repos/swoole/swoole-src/labels/unconfirmed","name":"unconfirmed","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-02T03:33:34Z","updated_at":"2018-08-09T09:27:56Z","closed_at":null,"author_association":"NONE","body":"=======make error==================\r\n\r\n```\r\n$git clone -b PHP-7.2 --depth 1 https://github.com/php/php-src.git\r\n$cd php-src/\r\n$git clone -b master --depth 1 https://github.com/swoole/swoole-src.git ext/swoole\r\n$./buildconf --force\r\n$./configure --prefix=/usr/local/php7 --disable-all --enable-cli --disable-cgi --disable-fpm --disable-phpdbg --enable-bcmath --enable-hash --enable-json --enable-mbstring --enable-mbregex --enable-mbregex-backtrack --enable-sockets --enable-pdo --with-sodium --with-password-argon2 --with-sqlite3 --with-pdo-sqlite --with-pcre-regex --with-zlib --with-openssl --enable-swoole-static --enable-openssl --with-swoole\r\n$time make -j `cat /proc/cpuinfo | grep processor | wc -l`\r\n......\r\nIn file included from ~/php-src/ext/swoole/swoole.c:16:0:\r\n~/php-src/ext/swoole/php_swoole.h:122:2: error: #error \"Enable openssl support, require openssl library.\"\r\n #error \"Enable openssl support, require openssl library.\"\r\n  ^\r\nmake: *** [ext/swoole/swoole.lo] Error 1\r\nmake: *** Waiting for unfinished jobs....\r\n\r\n\r\n$ sudo apt-get install openssl libssl-dev libcurl4-openssl-dev\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nlibcurl4-openssl-dev is already the newest version (7.60.0-2).\r\nlibssl-dev is already the newest version (1.1.0h-4).\r\nopenssl is already the newest version (1.1.0h-4).\r\n0 upgraded, 0 newly installed, 0 to remove and 982 not upgraded.\r\n\r\n$ export | grep LD\r\nexport LD_LIBRARY_PATH=\"/usr/local/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu\"\r\n```\r\n\r\nthe same error occurs even if i replace \"git clone -b master --depth 1 https://github.com/swoole/swoole-src.git ext/swoole\" with \"tar xzvf swoole-src-v4.0.3.tar.gz ext/swoole/\""},"comment":{"url":"https://api.github.com/repos/swoole/swoole-src/issues/comments/411696504","html_url":"https://github.com/swoole/swoole-src/issues/1859#issuecomment-411696504","issue_url":"https://api.github.com/repos/swoole/swoole-src/issues/1859","id":411696504,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTY5NjUwNA==","user":{"login":"diyism","id":1744399,"node_id":"MDQ6VXNlcjE3NDQzOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1744399?v=4","gravatar_id":"","url":"https://api.github.com/users/diyism","html_url":"https://github.com/diyism","followers_url":"https://api.github.com/users/diyism/followers","following_url":"https://api.github.com/users/diyism/following{/other_user}","gists_url":"https://api.github.com/users/diyism/gists{/gist_id}","starred_url":"https://api.github.com/users/diyism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diyism/subscriptions","organizations_url":"https://api.github.com/users/diyism/orgs","repos_url":"https://api.github.com/users/diyism/repos","events_url":"https://api.github.com/users/diyism/events{/privacy}","received_events_url":"https://api.github.com/users/diyism/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T09:27:56Z","updated_at":"2018-08-09T09:27:56Z","author_association":"NONE","body":"faint, replace \"--with-openssl\" as \"--with-openssl-dir\", everything is ok now:\r\n\r\n```\r\n$git clone -b PHP-7.2 --depth 1 https://github.com/php/php-src.git\r\n$cd php-src/\r\n$git clone -b master --depth 1 https://github.com/swoole/swoole-src.git ext/swoole\r\n$./buildconf --force\r\n$./configure --prefix=/usr/local/php7 --disable-all --enable-cli --disable-cgi --disable-fpm --disable-phpdbg --enable-bcmath --enable-hash --enable-json --enable-mbstring --enable-mbregex --enable-mbregex-backtrack --enable-sockets --enable-pdo --with-sodium --with-password-argon2 --with-sqlite3 --with-pdo-sqlite --with-pcre-regex --with-zlib --with-openssl-dir --enable-swoole-static --enable-openssl --with-swoole\r\n$time make -j `cat /proc/cpuinfo | grep processor | wc -l`\r\n$sudo make install\r\n```"}}
{"actor":{"display_login":"diyism"}}