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

build.jl doesn't work #2

Closed
markhalonen opened this issue Oct 3, 2019 · 3 comments
Closed

build.jl doesn't work #2

markhalonen opened this issue Oct 3, 2019 · 3 comments

Comments

@markhalonen
Copy link
Contributor

Not sure if this is right, but I did Pkg> include("deps/build.jl") and got

julia> include("deps/build.jl")
[ Info: Precompiling BinDeps [9e28174c-4ba2-5203-b857-d8d62c4213ee]
[ Info: Attempting to create directory /home/coho/deps/downloads
[ Info: Downloading file https://github.com/kyle-github/libplctag/archive/v2.0.22.tar.gz
--2019-10-03 11:54:39--  https://github.com/kyle-github/libplctag/archive/v2.0.22.tar.gz
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/kyle-github/libplctag/tar.gz/v2.0.22 [following]
--2019-10-03 11:54:40--  https://codeload.github.com/kyle-github/libplctag/tar.gz/v2.0.22
Resolving codeload.github.com (codeload.github.com)... 140.82.113.10
Connecting to codeload.github.com (codeload.github.com)|140.82.113.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/home/coho/deps/downloads/v2.0.22.tar.gz’

/home/coho/deps/downloads/v2.0.22.tar.gz                        [  <=>                                                                                                                                     ] 167.39K   332KB/s    in 0.5s

2019-10-03 11:54:41 (332 KB/s) - ‘/home/coho/deps/downloads/v2.0.22.tar.gz’ saved [171410]

[ Info: Done downloading file https://github.com/kyle-github/libplctag/archive/v2.0.22.tar.gz
[ Info: Attempting to create directory /home/coho/deps/src
[ Info: Attempting to create directory /home/coho/deps
[ Info: Directory /home/coho/deps already exists
[ Info: Attempting to create directory /home/coho/deps/src/libplctag-2.0.22/build
[ Info: Changing directory to /home/coho/deps/src/libplctag-2.0.22/build
ERROR: LoadError: IOError: could not spawn `cmake -DCMAKE_INSTALL_PREFIX=/home/coho/deps/usr /home/coho/deps/src/libplctag-2.0.22`: no such file or directory (ENOENT)
Stacktrace:
 [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at ./process.jl:401
 [2] #526 at ./process.jl:414 [inlined]
 [3] setup_stdios(::getfield(Base, Symbol("##526#527")){Cmd}, ::Array{Any,1}) at ./process.jl:498
 [4] _spawn at ./process.jl:413 [inlined]
 [5] #run#536(::Bool, ::typeof(run), ::Cmd) at ./process.jl:727
 [6] run(::Cmd) at ./process.jl:726
 [7] run(::BinDeps.SynchronousStepCollection) at /home/coho/.julia/packages/BinDeps/ZEval/src/BinDeps.jl:521
 [8] run(::FileRule) at /home/coho/.julia/packages/BinDeps/ZEval/src/BinDeps.jl:483
 [9] run(::BinDeps.SynchronousStepCollection) at /home/coho/.julia/packages/BinDeps/ZEval/src/BinDeps.jl:521 (repeats 2 times)
 [10] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at /home/coho/.julia/packages/BinDeps/ZEval/src/dependencies.jl:944
 [11] satisfy!(::BinDeps.LibraryDependency) at /home/coho/.julia/packages/BinDeps/ZEval/src/dependencies.jl:922
 [12] top-level scope at /home/coho/.julia/packages/BinDeps/ZEval/src/dependencies.jl:977
 [13] include at ./boot.jl:328 [inlined]
 [14] include_relative(::Module, ::String) at ./loading.jl:1094
 [15] include(::Module, ::String) at ./Base.jl:31
 [16] include(::String) at ./client.jl:431
 [17] top-level scope at REPL[5]:1
in expression starting at /home/coho/PLCTag.jl/deps/build.jl:37

shell> ls

shell> ls

julia>
coho@coho-VirtualBox:~/PLCTag.jl$ ls
deps  Manifest.toml  Project.toml  README.md  src
coho@coho-VirtualBox:~/PLCTag.jl$ ls deps/
build.jl
coho@coho-VirtualBox:~/PLCTag.jl$
@krrutkow
Copy link
Contributor

krrutkow commented Oct 3, 2019

you would usually run build PLCTag in Julia's package mode to build the package, not sure what would happen in this case

@krrutkow
Copy link
Contributor

krrutkow commented Oct 3, 2019

oh, libplctag requires cmake, make, gcc, etc... not sure what is in Ubuntu's "build-essentials" package, but hope that helps

@markhalonen
Copy link
Contributor Author

Got it working, had to install cmake

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

2 participants