This is a test version of Biostars. For the public version, visit https://www.biostars.org.
openssl/hmac.h error while installing bedGraphToBigWig

I'm trying to install bedGraphToBigWig into MACOSX.

I'm following this instructions:

https://github.com/ENCODE-DCC/kentUtils

I'm having this error when doing sudo make:

gcc -O -g  -Wall -Wno-unused-variable -Wno-deprecated-declarations  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_local -DUSE_SSL -DCOLOR32 -DUSE_SAMTABIX -DUSE_BAM -DUSE_TABIX -DKNETFILE_HOOKS   -Wall -Wno-unused-variable -Wno-deprecated-declarations  -I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc -I/include -I/usr/local/Cellar/libpng/1.6.25/include/libpng16 -I/Users/bernardo/Desktop/2017_02_13_Babitzke/whole_trimmed/kentUtils/samtabix  -o hmac.o -c hmac.c
hmac.c:12:10: fatal error: 'openssl/hmac.h' file not found
#include "openssl/hmac.h"
         ^
1 error generated.
make[2]: *** [hmac.o] Error 1
make[1]: *** [topLibs] Error 2
make: *** [libs] Error 2

What should I do?

I tried:

051894:kentUtils bernardo$ brew install openssl
Warning: openssl is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
bedgraphtobigwig

2 answers

Why not download pre-compiled bedGraphToBigWig executable for macOS here. Remember to do chmod u+x bedGraphToBigWig afterwards.

It is the site to download data/tools from UCSC.

OS X doesn't use OpenSSL any longer. You can still compile things but it is more work. Use the precompiled versions of Kent utilities.

What are Kent utilities?

They are what you are trying to install ("kentUtils").

Log in to answer this question.