Coder Social home page Coder Social logo

Unable to install about cargo-update HOT 15 CLOSED

balkierode avatar balkierode commented on July 23, 2024
Unable to install

from cargo-update.

Comments (15)

mati865 avatar mati865 commented on July 23, 2024 2

The only solution is updating system compiler (GCC in this case).

from cargo-update.

baileyn avatar baileyn commented on July 23, 2024 1

@balkierode you may need to try upgrading GCC. GCC <= 4.4 only accepted the flag -std=gnu89, but support was later added (after 4.4) to support -std=gnu90. I can't say that's the primary error, but I believe that's your main compiler errors when rust is building libssh2.

from cargo-update.

balkierode avatar balkierode commented on July 23, 2024 1

@perryprog I didn't open an issue as I moved on to different system now.

from cargo-update.

balkierode avatar balkierode commented on July 23, 2024

rust version 1.8.0. I don't think that matters though

from cargo-update.

balkierode avatar balkierode commented on July 23, 2024
Using built-in specs.
Target: x86_64-amazon-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --disable-gjdoc --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --disable-libgcj --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-amazon-linux
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on July 23, 2024

Update Rust to 1.18.0. How old even is 1.8.0 at this point?

This is an issue of libgit2 (or, well, technically, libssh2-sys, but it's pulled in by libgit2) I've run across in the past (or one similar thereto, anyway). You're in terra incognita for me now, probably best course of action would be to yell at libssh2-sys maintainer.

from cargo-update.

balkierode avatar balkierode commented on July 23, 2024

My bad (typo). it is 1.18

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on July 23, 2024

Aye. Anyway, that "solution" still stands. It's shit, I know (I even wasted a good six hours on it or a similar one but I thought it was just my setup because it's weird), but yelling at the maintainers of libssh2-sys might get us somewhere.

from cargo-update.

perryprog avatar perryprog commented on July 23, 2024

Getting the same problem. Any solution? I kinda want to update my things...

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on July 23, 2024

@perryprog Did someone finally open an issue over at the libssh2-sys repository? If not, that's the solution. If they did, then the solution is probably there. I have no idea why the libssh2-sys build error happens (and it seems to have different solutions on different systems) so I don't think I can provide anything beside that.

from cargo-update.

perryprog avatar perryprog commented on July 23, 2024

Paging @balkierode: did you make an issue?

@nabijaczleweli Fair enough, I’ll do some research I suppose.

from cargo-update.

perryprog avatar perryprog commented on July 23, 2024

@mati865 that’s lovely. I can’t update GCC right now, cause Homebrew doesn’t support High Sierra enough yet. I guess I’ll have to wait!

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on July 23, 2024

What's the status on this?
@perryprog, does it work after updating GCC?
@balkierode, does the issue persist on that "different system"?

from cargo-update.

perryprog avatar perryprog commented on July 23, 2024

I'm not sure what I changed, (I assume I've updated GCC by now probably) but it installs fine now.

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on July 23, 2024

Cool and good 👍

from cargo-update.

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.