rust - sdl2-sys won't compile - could not exec the linker: No such file or directory -


i'm following this rust tutorial , struggling compiling first basic project. using fedora, newbie.

$ cargo build --verbose    compiling sdl2-sys v0.5.0      running `rustc /home/batisteo/.cargo/registry/src/github.com-1ecc6299db9ec823/sdl2-sys-0.5.0/build.rs --crate-name build_script_build --crate-type bin -c prefer-dynamic -g --cfg feature="default" --out-dir /home/batisteo/arcade-rs/target/debug/build/sdl2-sys-d9571ac1c4bc4261 --emit=dep-info,link -l dependency=/home/batisteo/arcade-rs/target/debug/deps -l dependency=/home/batisteo/arcade-rs/target/debug/deps -awarnings`    fresh libc v0.1.8    fresh bitflags v0.2.1    fresh rustc-serialize v0.3.15    fresh rand v0.3.8    fresh num v0.1.25 error: not exec linker `cc`: no such file or directory (os error 2) error: aborting due previous error not compile `sdl2-sys`.  caused by:   process didn't exit successfully: `rustc /home/batisteo/.cargo/registry/src/github.com-1ecc6299db9ec823/sdl2-sys-0.5.0/build.rs --crate-name build_script_build --crate-type bin -c prefer-dynamic -g --cfg feature="default" --out-dir /home/batisteo/arcade-rs/target/debug/build/sdl2-sys-d9571ac1c4bc4261 --emit=dep-info,link -l dependency=/home/batisteo/arcade-rs/target/debug/deps -l dependency=/home/batisteo/arcade-rs/target/debug/deps -awarnings` (exit code: 101) 

i have same input before or after installing sdl:

$ sudo dnf install sdl2-devel 

do have c compiler installed? looks me it's complaining cc.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -