I need help installing libcurl dependency of sac on an ARM machine

102 views
Skip to first unread message

Olumide Sanusi

unread,
Aug 7, 2024, 1:55:53 PM8/7/24
to SAC Community
Good day, Everyone! 

To build and compile sac from the source code, I need to install libxml2 and libcurl. I have successfully installed libxml2 and linked its path to xml2-config. However, I ran "brew install  libcurl" on a Mac M1 ARM64 terminal, but I got this warning error: "No available formula with the name "libcurl". Does anyone have any other ideas on how to install this libcurl dependency of sac on an ARM machine? Thank you very much for your time and response!

Best regards,
Sherif

Autumn Muhly

unread,
Jun 11, 2025, 5:21:39 PMJun 11
to SAC Community, Olumide Sanusi
Hi!
Long time but this is how I figured it out. This is for 102.0. This seems dumb but hope it works for you. :)

brew install libxml2 libiconv curl ncurses zlib libedit
export LDFLAGS="-L/opt/homebrew/opt/libiconv/lib $LDFLAGS"
export CPPFLAGS="-I/opt/homebrew/opt/libiconv/include $CPPFLAGS"
export PATH="/opt/homebrew/opt/libxml2/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/libxml2/lib $LDFLAGS"
export CPPFLAGS="-I/opt/homebrew/opt/libxml2/include $CPPFLAGS"
export LDFLAGS="-L/opt/homebrew/opt/curl/lib $LDFLAGS"
export CPPFLAGS="-I/opt/homebrew/opt/curl/include $CPPFLAGS"
export LDFLAGS="-L/opt/homebrew/opt/ncurses/lib $LDFLAGS"
export CPPFLAGS="-I/opt/homebrew/opt/ncurses/include $CPPFLAGS"
export LDFLAGS="-L/opt/homebrew/opt/zlib/lib $LDFLAGS"
export CPPFLAGS="-I/opt/homebrew/opt/zlib/include $CPPFLAGS"
export LDFLAGS="-L/opt/homebrew/opt/libedit/lib $LDFLAGS"
export CPPFLAGS="-I/opt/homebrew/opt/libedit/include $CPPFLAGS"
./configure 
make && make install

Best,
Autumn Muhly


Autumn Muhly(she/her)
PhD Student in Geophysics
School of Earth, Ocean and Environment
University of South Carolina
EWS 516B
Reply all
Reply to author
Forward
0 new messages