Giter Site home page Giter Site logo

Compiling on OS X Yosemite about exa HOT 4 CLOSED

ogham avatar ogham commented on May 5, 2024
Compiling on OS X Yosemite

from exa.

Comments (4)

ogham avatar ogham commented on May 5, 2024

Try running a cargo update - some dependencies hadn't been updated to use the latest nightly (std::num changes), but now they are. I just fixed my datetime crate.

Unfortunately, if you get it to compile, you'll find that a bunch of data is missing. This is because the old_io implementation isn't around anymore, and the new one doesn't have all the Unix extensions yet (see rust-lang/rust#24711). There's a new_fs branch if you want to get something compilable, though.

from exa.

davidcelis avatar davidcelis commented on May 5, 2024

After a cargo update, building still fails; though it fails on compiling users now:

cargo build --release
 Downloading getopts v0.2.10
 Downloading num v0.1.24
 Downloading locale v0.1.8
 Downloading number_prefix v0.2.4
 Downloading regex_macros v0.1.17
 Downloading unicode-width v0.1.1
 Downloading rustc-serialize v0.3.14
 Downloading openssl-sys v0.6.1
 Downloading rand v0.3.8
 Downloading pad v0.1.4
 Downloading libz-sys v0.1.3
 Downloading url v0.2.31
 Downloading regex v0.1.30
 Downloading datetime v0.1.7
 Downloading num_cpus v0.2.3
   Compiling unicode-width v0.1.1
   Compiling rustc-serialize v0.3.14
   Compiling regex v0.1.30
   Compiling openssl-sys v0.6.1
   Compiling libz-sys v0.1.3
   Compiling libgit2-sys v0.2.12 (https://github.com/alexcrichton/git2-rs.git#c9eea60c)
   Compiling libssh2-sys v0.1.18
   Compiling num_cpus v0.2.3
   Compiling log v0.3.1
   Compiling users v0.3.2
   Compiling rand v0.3.8
/Users/david/.cargo/registry/src/github.com-1ecc6299db9ec823/users-0.3.2/src/lib.rs:5:1: 5:47 error: unstable feature
/Users/david/.cargo/registry/src/github.com-1ecc6299db9ec823/users-0.3.2/src/lib.rs:5 #![feature(collections, core, libc, std_misc)]
                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: this feature may not be used in the beta release channel
error: aborting due to previous error
   Compiling pad v0.1.4
Build failed, waiting for other jobs to finish...
/Users/david/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.30/src/lib.rs:370:34: 370:48 error: unstable feature
/Users/david/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.30/src/lib.rs:370 #![cfg_attr(feature = "pattern", feature(core))]
                                                                                                                          ^~~~~~~~~~~~~~
note: this feature may not be used in the beta release channel
error: aborting due to previous error
Could not compile `users`.

To learn more, run the command again with --verbose.
make: *** [target/release/exa] Error 101

from exa.

mingchen avatar mingchen commented on May 5, 2024

another failed on Mac OS X 10.10.3.

$ rustc --version
rustc 1.1.0-nightly (c4b23aec4 2015-04-29) (built 2015-04-28)

Error message:

Compiling git2 v0.2.9 (https://github.com/alexcrichton/git2-rs.git#42776b31)
Compiling exa v0.2.0 (file:///Users/ming/Downloads/opensources/exa)
src/main.rs:16:1: 16:22 error: can't find crate for `unicode`
src/main.rs:16 extern crate unicode;
           ^~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `exa`.

To learn more, run the command again with --verbose.
make: *** [target/release/exa] Error 101

from exa.

ogham avatar ogham commented on May 5, 2024

I finally merged the new_fs branch (in commit ffcc6fa), so everything should be back to normal now. Sorry for the inconvenience!

The reason it took so long was that we were reliant on certain Unix-specific extensions, which were only implemented by the Rust devs a few days ago. So your choices were having a version that doesn't compile, or a version that does compile but displays the wrong information. I chose the former, but with the new functionality, it's all working again.

from exa.

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.