Help us understand the problem. What is going on with this article?

pycurlをmacOS Sierraで動くようにする

More than 1 year has passed since last update.

まだ Sierraなの?

ほっとけ、会社勤めだといろいろあるんや。。。

これが出て辛かった

$ python -c "import pycurl"
pycurl: libcurl link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)

none/otherってなんやねん

$ /usr/bin/curl --version
curl 7.54.0 (x86_64-apple-darwin16.0) libcurl/7.54.0 SecureTransport zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets 

SecureTransportってなに?

こうあって欲しい

$ curl --version
curl 7.61.1 (x86_64-apple-darwin16.7.0) libcurl/7.61.1 OpenSSL/1.0.2p zlib/1.2.8
Release-Date: 2018-09-05
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy 

とりあえずcurl

brew uninstall curl
brew install --force curl --with-openssl
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

これであって欲しい姿になった。

そして、pycurl

PYCURL_SSL_LIBRARY=openssl LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" pip install --no-cache-dir --user pycurl

多謝

Installing PycURL on macOS High Sierra

いいたいこと

requestつかってくれ、お願いだから。

tnoho
ひゃっはー
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした