Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue #4

Closed
juan-pablo-vielma opened this issue May 29, 2014 · 4 comments
Closed

Compilation issue #4

juan-pablo-vielma opened this issue May 29, 2014 · 4 comments

Comments

@juan-pablo-vielma
Copy link
Contributor

julia> Pkg.add("Clp")
INFO: Installing Cbc v0.0.7
INFO: Installing Clp v0.0.7
INFO: Building Cbc
INFO: Attempting to Create directory /home/jvielma/.julia/v0.2/Cbc/deps/downloads
INFO: Directory /home/jvielma/.julia/v0.2/Cbc/deps/downloads already created
INFO: Downloading file http://www.coin-or.org/download/source/CoinMP/CoinMP-1.7.6.tgz
INFO: Done downloading file http://www.coin-or.org/download/source/CoinMP/CoinMP-1.7.6.tgz
INFO: Attempting to Create directory /home/jvielma/.julia/v0.2/Cbc/deps/src
INFO: Directory /home/jvielma/.julia/v0.2/Cbc/deps/src already created
INFO: Attempting to Create directory /home/jvielma/.julia/v0.2/Cbc/deps
INFO: Directory /home/jvielma/.julia/v0.2/Cbc/deps already created
INFO: Attempting to Create directory /home/jvielma/.julia/v0.2/Cbc/deps/src/CoinMP-1.7.6
INFO: Directory /home/jvielma/.julia/v0.2/Cbc/deps/src/CoinMP-1.7.6 already created
INFO: Changing Directory to /home/jvielma/.julia/v0.2/Cbc/deps/src/CoinMP-1.7.6
patching file CoinMP/src/CoinProblem.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file CoinMP/src/CoinProblem.c.rej
=============================================================================================[ ERROR: Cbc ]=============================================================================================

failed process: Process(`patch -N -p1`, ProcessExited(1)) [1]
at /home/jvielma/.julia/v0.2/Cbc/deps/build.jl:45

========================================================================================================================================================================================================

============================================================================================[ BUILD ERRORS ]============================================================================================

WARNING: Cbc had build errors.

 - packages with build errors remain installed in /home/jvielma/.julia/v0.2
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

========================================================================================================================================================================================================
INFO: REQUIRE updated.

same message after update and build,

@mlubin
Copy link
Member

mlubin commented May 30, 2014

Is this on linux?

I'm guessing something got corrupted with the build. Try:

cd /home/jvielma/.julia/v0.2/Cbc/deps
rm -rf downloads src usr

and then Pkg.build("Cbc").

@juan-pablo-vielma
Copy link
Contributor Author

Thanks, that fixed it (it was Ubuntu 14.04)
The original build failed because g++ was not installed.
After install it failed and kept failing after doing Pkg.rm("Clp")

Just noticed that rm just moves the files to .trash
and the subsequent Pkg.add's just moved the corrupted files back.

On May 29, 2014, at 8:22 PM, Miles Lubin <[email protected]mailto:[email protected]>
wrote:

Is this on linux?

I'm guessing something got corrupted with the build. Try:

cd /home/jvielma/.julia/v0.2/Cbc/deps
rm -rf downloads src usr

and then Pkg.build("Cbc").


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-44601886.

@mlubin
Copy link
Member

mlubin commented May 30, 2014

Yes, I think the behavior of Pkg.rm is confusing. Just filed an issue: JuliaLang/julia#7054

@mlubin mlubin closed this as completed May 30, 2014
@alerera
Copy link

alerera commented Aug 4, 2014

I had the same silly problem when I just setup a new laptop with Ubuntu 14.04.

Surprisingly, g++ is not part of the default OS install. I used the same fix that you proposed above, and all is fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants