You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to compile simple Crystal programs (I'm trying it for the first time today). However, when I try to run the playground with crystal play, once I connect to the URL the spinning start/stop button eventually announces a disconnect, and I get this in the terminal —
Listening on http://127.0.0.1:8080
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_*Iconv#convert<Pointer(Pointer(UInt8)), Pointer(UInt64), Pointer(Pointer(UInt8)), Pointer(UInt64)>:UInt64 in I-conv.o
"_iconv_close", referenced from:
_*Iconv#close:Nil in I-conv.o
"_iconv_open", referenced from:
_*Iconv#initialize<String, String, (Symbol | Nil)>:Nil in I-conv.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/xxxxx/.cache/crystal/crystal-run-play-1-1.tmp' -rdynamic -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lpcre /Users/xxxxx/local/pkg/crystal-0.31.1-1/embedded/lib/libgc.a -lpthread /Users/xxxxx/local/pkg/crystal-0.31.1-1/src/ext/libcrystal.a -levent -liconv -ldl -L/Users/xxxxx/local/pkg/crystal-0.31.1-1/embedded/lib -L/usr/lib -L/usr/local/lib`
There is a libiconv.2.dylib in /usr/lib, so I'm not entirely sure where the error is.
The text was updated successfully, but these errors were encountered:
Crystal version: 0.31.1 (also tested 0.31.0, which fails, too).
MacOS version: 10.14.6.
I am able to compile simple Crystal programs (I'm trying it for the first time today). However, when I try to run the playground with
crystal play
, once I connect to the URL the spinning start/stop button eventually announces a disconnect, and I get this in the terminal —There is a
libiconv.2.dylib
in/usr/lib
, so I'm not entirely sure where the error is.The text was updated successfully, but these errors were encountered: