purpleprotocol / mimalloc_rust

A Rust wrapper over Microsoft's MiMalloc memory allocator
MIT License
503 stars 41 forks source link

Not building on MacOS #2

Closed gngeorgiev closed 5 years ago

gngeorgiev commented 5 years ago
error: failed to run custom build command for `libmimalloc-sys v0.1.0`

Caused by:
  process didn't exit successfully: `/Users/georgin.georgiev/projects/proxy-rs/target/debug/build/libmimalloc-sys-b5ac48f080fa6cdd/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/Users/georgin.georgiev/.cargo/registry/src/github.com-1ecc6299db9ec823/libmimalloc-sys-0.1.0/c_src/mimalloc" "-DSECURE=ON" "-DCMAKE_INSTALL_PREFIX=/Users/georgin.georgiev/projects/proxy-rs/target/debug/build/libmimalloc-sys-ee4bb380152032d6/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Debug"

--- stderr
thread 'main' panicked at '
failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?

build script failed, must exit now', /Users/georgin.georgiev/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.40/src/lib.rs:832:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

I can help debugging and fixing this. I would just need some pointers since I am not too familiar with C's build tools.

octavonce commented 5 years ago

@gngeorgiev Do you have cmake installed? Using osx as well and it builds fine on my machine.

failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?
gngeorgiev commented 5 years ago

Oh man, it's late. Absolutely didn't notice this part :)