Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl issue in Makefile when downloading htsjdk #42

Closed
xchrom opened this issue Jan 21, 2016 · 2 comments
Closed

Curl issue in Makefile when downloading htsjdk #42

xchrom opened this issue Jan 21, 2016 · 2 comments

Comments

@xchrom
Copy link

xchrom commented Jan 21, 2016

Hi Pierre,

While using jvarkit for the first time, I ran into an issue when compiling sam2tsv and wanted to let others know the solution in case they encountered a similar issue.

I kept getting an error with curl and ca certificates when trying to compile sam2tsv

$ make sam2tsv

mkdir -p /home4/user/software/jvarkit/
rm -rf /home4/user/software/jvarkit/2.0.1.zip /home4/user/software/jvarkit/htsjdk-2.0.1/
echo "Downloading HTSJDK 2.0.1 with curl"
Downloading HTSJDK 2.0.1 with curl
curl -o /home4/user/software/jvarkit/2.0.1.zip -L "https://github.com/samtools/htsjdk/archive/2.0.1.zip"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (77) error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
make: *** [home4/user/software/jvarkit/htsjdk-2.0.1/build.xml] Error 77

I went and looked Makefile and found that by adding the -k option (allows insecure transfers), everything worked great. Every other time curl was in used Makefile it had the -k option.

line 589: curl -k ${curl.proxy} -o $(dir ${htsjdk.home})${htsjdk.version}.zip -L "https://github.com/samtools/htsjdk/archive/${htsjdk.version}.zip"

@lindenb
Copy link
Owner

lindenb commented Jan 21, 2016

thanks ! I'll had the -k for downloading htsjdk.

@lindenb
Copy link
Owner

lindenb commented Jan 21, 2016

done: d0200d5

@lindenb lindenb closed this as completed Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants