imazen / imageflow

High-performance image manipulation for web servers. Includes imageflow_server, imageflow_tool, and libimageflow
https://docs.imageflow.io/
GNU Affero General Public License v3.0
4.14k stars 140 forks source link

"'cargo' is required, but missing" error on Windows #651

Closed IvanSmiths closed 1 month ago

IvanSmiths commented 1 month ago

Super newbie here. I've encountered an issue while attempting to build Imageflow locally on Windows 11. I Followed all the steps in the "Windows 10 Pre-requisites", no errors so far. After installing everything, i started from the "Building from Source without Docker" part. Each ./build.sh command runs smoothly, but not the ./build.sh install, where i get this error "'cargo' is required, but missing. Try: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain beta". I have run ./build.sh release before it.

As suggested by the docs, I have checked the ci/wintools/SETUP_PATH.bat file which contains all the necessary paths, and i am running all the build commands using the file win_enter_env.bat.

I have also tried by building using cargo, but when i run this command: cargo build --package imageflow_tool --release, i get this error: `` error: package ID specificationimageflow_tool` did not match any packages

    Did you mean `imageflow_core`?


What am i missing? Any help will be highly appreciated, thanks in advance
lilith commented 1 month ago

Cargo build is the preferred method - github actions files provide the most updated steps.

Do you run cargo build from the repo root?

IvanSmiths commented 1 month ago

Yes, i run it from the root. I saw that i am the only one having this problem, If i have to guess, i still need some packages to be installed properly, i am new to Rust, and i am probably missing something.

Thank you for your message.

lilith commented 1 month ago

Try running: cargo build --all --release

On Fri, May 17, 2024, 12:28 PM Ivan @.***> wrote:

Yes, i run it from the root. I saw that i am the only one having this problem, If i have to guess, i still need some packages to be installed properly, i am new to Rust, and i am probably missing something.

Thank you for your message.

— Reply to this email directly, view it on GitHub https://github.com/imazen/imageflow/issues/651#issuecomment-2118168616, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2LH7F7EHKHJN3PEGUSATZCZD4JAVCNFSM6AAAAABH3D5CPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGE3DQNRRGY . You are receiving this because you commented.Message ID: @.***>