cURL 로컬 설치하기
Julia에서 Pkg.add를 하려고 했는데 아래와 같은 에러메세지가 나타났다.
julia> Pkg.add("StatsBase")
INFO: Installing Plots v0.12.2
INFO: Building Plots
INFO: Cannot find deps/plotly-latest.min.js... downloading latest version.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (35) SSL connect error
==================================================[ ERROR: Plots ]==================================================
LoadError: failed process: Process(`curl -L -f -o /home/kyoungwoo/.julia/v0.6/Plots/deps/plotly-latest.min.js https://cdn.plot.ly/plotly-latest.min.js`, ProcessExited(35)) [35]
while loading /home/kyoungwoo/.julia/v0.6/Plots/deps/build.jl, in expression starting on line 7
====================================================================================================================
==================================================[ BUILD ERRORS ]==================================================
WARNING: Plots had build errors.
- packages with build errors remain installed in /home/kyoungwoo/.julia/v0.6
- build the package(s) and all dependencies with `Pkg.build("Plots")`
- build a single package by running its `deps/build.jl` script
====================================================================================================================
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of StatsBase
INFO: Use `Pkg.update()` to get the latest versions of your packages
curl이 제대로 자동하지 않는 것 같아 shell 화면에서 명령어만 따로 실행해 보았다..
Thu Aug 24 15:21:26 [kyoungwoo@biglab-master gtf_to_fasta]$ curl -L -f -o /home/kyoungwoo/.julia/v0.6/Plots/deps/plotly-latest.min.js https://cdn.plot.ly/plotly-latest.min.js
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) SSL connect error
SSL connect error 35가 나오는 것을 확인하였다.
구글링해서 문제 해결방법을 찾아보니 curl의 버전이 낮아서 최신버전을 설치하라고 해서
local로 cURL을 설치하는 법을 찾아보았다.
들어가서 다운로드 후 configure 파일을 생성하기 위해서는 ./buildconf 를 실행해 줘야 한다.
buildconf 후에 configure 파일이 만들어지면
./configure --prefix=/PATH/TO/INSTALL/CURL
make && make install
export PATH = /PATH/TO/INSTALL/CURL/bin:$PATH
export PATH = /PATH/TO/INSTALL/CURL/lib:$PATH
끝!
Julia 명령도 정상적으로 잘 실행되는 것을 확인했다.