I wrote a small game using Rust, and I used cargo build --releaseto compile the release version on Mac.
cargo build --release
I tried to share this with my friend who uses Ubuntu, but when he tried to run the binary, he got the following error:
cannot execute binary file: Exec format error
I searched for this but did not find the answers. Does Rust claim to be "lack of runtime"? Can't it work in binary form?
, , , , (, -). (.. ), MacOS Linux.
, -. rustup, - :
rustup
# Install the toolchain to build Linux x86_64 binaries rustup target add x86_64-unknown-linux-gnu
:
cargo build --release --target=x86_64-unknown-linux-gnu
: OS X, ; , , !
, , Rust ( Java JVM), , ; , , -. Rust, , , - Rust GitHub repo.
Source: https://habr.com/ru/post/1667346/More articles:Как написать форматированную строку в файл с помощью функций безопасного действия? - cSilver finder can get PATTERN from file? - command-lineLimit number of positions in Quantstrat - rToday, the extension with UICollectionView is different compared to Single View - ioschange color DatePicker [Xamarin.Forms] - background-colorWhen to use one or two underscores in Python - pythonPerformance Statements - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1667349/adding-bower-components-to-vue-webpack&usg=ALkJrhjd7WOV-a0HSJAiWs9UZzMofzqizgПоле ввода с каналом не обновляет значение при удалении пространства - angularФиксация ERR_INCOMPLETE_CHUNKED_ENCODING в JAVA Spring/angular Запрос JS GET - javaAll Articles