gothinkster / elixir-phoenix-realworld-example-app

Exemplary real world application built with Elixir + Phoenix
https://realworld.io
MIT License
892 stars 140 forks source link

mix ecto.create on Fedora 30 and cannot find crti.o #38

Open ghenry opened 5 years ago

ghenry commented 5 years ago

Hi all,

I'm trying to run this example and am getting:

~/src/elixir-phoenix-realworld-example-app [master*]$ mix ecto.create
==> comeonin
mkdir -p priv
cc -g -O3 -Wall -I/usr/lib64/erlang/erts-10.3.5.5/include -Ic_src -fPIC -shared  c_src/bcrypt_nif.c c_src/blowfish.c -o priv/bcrypt_nif.so
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:30: priv/bcrypt_nif.so] Error 1
could not compile dependency :comeonin, "mix compile" failed. You can recompile this dependency with "mix deps.compile comeonin", update it with "mix deps.update comeonin" or clean it with "mix deps.clean comeonin"
==> real_world
** (Mix) Could not compile with "make" (exit status: 2).
You need to have gcc and make installed. If you are using
Ubuntu or any other Debian-based system, install the packages
"build-essential". Also install "erlang-dev" package if not
included in your Erlang/OTP version. If you're on Fedora, run
"dnf group install 'Development Tools'".

I do have Development Tools installed and can see this:

ls -lh /usr/lib64/crti*
-rw-r--r-- 1 root root 1.8K Sep  4 20:48 /usr/lib64/crti.o

Any pointers?

Thanks.