modest
modest copied to clipboard
libmodest_static.a Error
Hello,
First of all, thanks for your hard work.
I'm experimenthing with Crystal and decided to make a simple web scraper with it. Everything was okey in my home workspace but at work i can not get it to working.
At home I use Archlinux, everything works. At work, I use Mac Air with High Sierra.
ErrorLog:
➜ sahibinden-scraper.cr git:(master) ✗ crystal src/scraper.cr
clang: error: no such file or directory: '/Users/okanbinli/projects/sahibinden-scraper.cr/lib/modest/src/modest/../ext/modest-c/lib/libmodest_static.a'
clang: error: no such file or directory: '/Users/okanbinli/projects/sahibinden-scraper.cr/lib/modest/src/modest/../ext/modest-c/lib/libmodest_static.a'
clang: error: no such file or directory: '/Users/okanbinli/projects/sahibinden-scraper.cr/lib/myhtml/src/myhtml/../ext/myhtml-c/lib/libmyhtml_static.a'
Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/okanbinli/.cache/crystal/crystal-run-scraper.tmp' -rdynamic /Users/okanbinli/projects/sahibinden-scraper.cr/lib/modest/src/modest/../ext/modest-c/lib/libmodest_static.a /Users/okanbinli/projects/sahibinden-scraper.cr/lib/modest/src/modest/../ext/modest-c/lib/libmodest_static.a /Users/okanbinli/projects/sahibinden-scraper.cr/lib/myhtml/src/myhtml/../ext/myhtml-c/lib/libmyhtml_static.a -lz `command -v pkg-config > /dev/null && pkg-config --libs libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs libcrypto || printf %s '-lcrypto'` -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.24.1_1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`
I did crystal deps to install dependencies. Didn't work.
I did solve the problem.
cd into lib/modest/src/ext and did a Make
And did the same thing for myhtml dependency.
It works now.
Maybe you can update readme with this information
when you install dependencies with crystal deps, it would make it automatically.
I did install dependencies with crystal deps but it didnt compile. But it did on my home workspace, as you said.