Skip to content

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

Closed
@sje30

Description

@sje30

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions