Coder Social home page Coder Social logo

Comments (5)

Zebedee68 avatar Zebedee68 commented on June 16, 2024

Same problem with me on Win10 32bit, see here: http://stackoverflow.com/questions/32487166/cargo-build-error-file-missing

Anyone?

from curl-rust.

phil-n avatar phil-n commented on June 16, 2024

I have the same problem with windows 10 64bit, moving the project to C:\ as suggested in the SO thread didn't help in my case.

from curl-rust.

FlorianScheyer avatar FlorianScheyer commented on June 16, 2024

I got the same error, windows 8.1 64bit, still looking for a fix also tried moving the project to C:\ but it didn't work.

from curl-rust.

Seeker14491 avatar Seeker14491 commented on June 16, 2024

I'm getting this error while trying to install cargo-edit. I'm on Windows 7 64-bit.

   Compiling curl-sys v0.1.26
failed to run custom build command for `curl-sys v0.1.26`
Process didn't exit successfully: `C:\Users\Seeker\Desktop\cargo-edit\target\rel
ease\build\curl-sys-f4d12d0ac911a4c8\build-script-build` (exit code: 101)
--- stdout
Couldn't find libcurl from pkgconfig ("failed to run `\"pkg-config\" \"--libs\"
\"--cflags\" \"libcurl\"`: The system cannot find the file specified. (os error
2)"), compiling it from source...
cargo:rustc-link-search=C:\Users\Seeker\Desktop\cargo-edit\target\release\build\
curl-sys-f4d12d0ac911a4c8\out/lib
cargo:rustc-link-lib=static=curl
cargo:root=C:\Users\Seeker\Desktop\cargo-edit\target\release\build\curl-sys-f4d1
2d0ac911a4c8\out
cargo:include=C:\Users\Seeker\Desktop\cargo-edit\target\release\build\curl-sys-f
4d12d0ac911a4c8\out/include
cargo:rustc-flags=-l ws2_32
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-pc-windows-gnu")
debug=false opt-level=3
HOST = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
running: "sh" "/c/Users/Seeker/.cargo/registry/src/github.com-0a35038f75765ae4/c
url-sys-0.1.26/curl/configure" "--with-winssl" "--enable-static=yes" "--enable-s
hared=no" "--enable-optimize" "--prefix=C:\\Users\\Seeker\\Desktop\\cargo-edit\\
target\\release\\build\\curl-sys-f4d12d0ac911a4c8\\out" "--without-librtmp" "--w
ithout-libidn" "--without-libssh2" "--without-nghttp2" "--disable-ldap" "--disab
le-ldaps" "--disable-ftp" "--disable-rtsp" "--disable-dict" "--disable-telnet" "
--disable-tftp" "--disable-pop3" "--disable-imap" "--disable-smtp" "--disable-go
pher" "--disable-manual"

--- stderr
thread '<main>' panicked at 'cmd.status() return the error The system cannot fin
d the file specified. (os error 2)', C:\Users\Seeker\.cargo\registry\src\github.
com-0a35038f75765ae4\curl-sys-0.1.26\build.rs:130

from curl-rust.

alexcrichton avatar alexcrichton commented on June 16, 2024

This indicates that "sh" isn't an executable in PATH, which probably means that you're not running inside an MSYS2 shell. Some possible fixes are:

  • Compiles can happen from an MSYS2 shell instead of another.
  • "sh" can be added to PATH manually
  • The MSVC-targeting compilers could be used instead of the MinGW ones

In general though there could be some better error messages here.

from curl-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.