Skip to content

Instantly share code, notes, and snippets.

@maiha
Last active December 25, 2015 17:31
Show Gist options
  • Save maiha/dda59629acf3e8ba3fc5 to your computer and use it in GitHub Desktop.
Save maiha/dda59629acf3e8ba3fc5 to your computer and use it in GitHub Desktop.

compile error

cannot find -lpcre

  • in ubuntu
./bin/crystal build  -o .build/all_spec spec/all_spec.cr
Using compiled compiler at .build/crystal
/usr/bin/ld: cannot find -lpcre
collect2: error: ld returned 1 exit status
export LIBRARY_PATH=/opt/crystal/embedded/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment