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

"ERROR: require not defined" when installing Cairo #2766

Closed
sje30 opened this issue Apr 5, 2013 · 6 comments
Closed

"ERROR: require not defined" when installing Cairo #2766

sje30 opened this issue Apr 5, 2013 · 6 comments

Comments

@sje30
Copy link
Contributor

sje30 commented Apr 5, 2013

Apologies in advance if this is obvious, but am just getting started with Julia (encouraged by recent tutorial videos). Cairo won't install for me on my ubuntu box; have done:

$apt-get install libcairo2 libpango1.0-0 tk-dev

and then in Julia:

Pkg.add("Cairo")
MESSAGE: Installing Cairo v0.0.0
Cloning into 'Cairo'...
remote: Counting objects: 192, done.        
remote: Compressing objects: 100% (141/141), done.        
remote: Total 192 (delta 78), reused 141 (delta 27)        
Receiving objects: 100% (192/192), 43.21 KiB, done.
Resolving deltas: 100% (78/78), done.
MESSAGE: Running build script for package Cairo
ERROR: require not defined
 in evalfile at loading.jl:135
 in anonymous at no file:249
 in cd at file.jl:26
 in runbuildscript at pkg.jl:246
 in _resolve at pkg.jl:361
 in anonymous at no file:163
 in cd at file.jl:26
 in cd_pkgdir at pkg.jl:42
 in add at pkg.jl:143
 in add at pkg.jl:175

Have no idea how to debug this, but "require" seems to have some definitions at leat:

julia> require
# methods for generic function require
require(name::Union(ASCIIString,UTF8String)) at loading.jl:39
require(fname::String) at loading.jl:36
require(f::String,fs::String...) at loading.jl:37

[pao: formatting]

@aviks
Copy link
Member

aviks commented Apr 5, 2013

Which version of Julia are you using? Is it a checkout from a recent master?

@StefanKarpinski
Copy link
Sponsor Member

This is probably due to the recent change to evalfile to evaluate inside a temporary module.

@sje30
Copy link
Contributor Author

sje30 commented Apr 5, 2013

On Fri, Apr 05 2013, Avik Sengupta wrote:

Which version of Julia are you using? Is it a checkout from a recent
master?

Yes, it is: Commit 1ae9a78 2013-04-05 15:07:49

(Sorry, I forgot to include that before).

Stephen

@aviks
Copy link
Member

aviks commented Apr 5, 2013

Yeah, so this is then almost certainly due to the evalfile change that Stefan mentioned, which came in at a099ea3

@JeffBezanson

@blakejohnson
Copy link
Contributor

Now we get a different error:

julia> Pkg.runbuildscript("Cairo")
MESSAGE: Running build script for package Cairo
WARNING: expr(hd,a...) is deprecated, use Expr(hd,a...) instead.
ERROR: @build_steps not defined
 in evalfile at loading.jl:135
 in anonymous at no file:249
 in cd at file.jl:26
 in runbuildscript at pkg.jl:246

@aviks
Copy link
Member

aviks commented Apr 5, 2013

The new issue (@build_steps not defined) is being tracked in #2768

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

No branches or pull requests

4 participants