Open dlcmh opened 9 years ago
I think you need a more recent gcc version. Either install it via homebrew or install Xcode command line tools with xcode-select --install
.
@dlcmh Try locking hoedown to tag 3.0.2
:
{:hoedown, github: "hoedown/hoedown", tag: "3.0.2", override: true}
and report back
@devinus -> same result, I think the issue is with the use of -soname
on OS X, as highlighted by the error message ld: unknown option: -soname
which I got when I ran mix phoenix.server
.
Googling "mac gcc soname install_name" suggests that -install_name
is the correct option to use for OS X, instead of -soname
-> when I replace -soname
in deps/hoedown/Makefile
with -install_name
and run mix reps.compile hoedown
, I get the following warnings, but compilation is successful and I was then able to useMarkdown.to_html
in Phoenix controllers:
...
bin/hoedown.c:446:10: warning: comparison of integers of different signs: 'clock_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
if (t1 == -1 || t2 == -1) {
~~ ^ ~~
bin/hoedown.c:446:22: warning: comparison of integers of different signs: 'clock_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
if (t1 == -1 || t2 == -1) {
~~ ^ ~~
2 warnings generated.
...
Faced issue mentioned in the title - please help, thanks!
Machine is MacBook Air running Yosemite.
Elixir 1.0.5 & Erlang/OTP 18 installed.
Added
{:markdown, github: "devinus/markdown"}
todeps
inmix.exs
in a Phoenix project.Ran
mix deps.get
-> no issues.Ran
mix phoenix.server
andmix eps.compile hoedown
several times -> here's what appeared: