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

can't manage to install correctly, test fail on my computer #19

Open
bcameron43 opened this issue Sep 1, 2015 · 10 comments
Open

can't manage to install correctly, test fail on my computer #19

bcameron43 opened this issue Sep 1, 2015 · 10 comments

Comments

@bcameron43
Copy link

I cannot use any of the Taro functions.

Pkg.test("Taro")
INFO: No packages to install, update or remove
ERROR: Taro did not provide a test/runtests.jl file
in error at error.jl:21
in test at pkg/entry.jl:718
in anonymous at pkg/dir.jl:28
in cd at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib
in cd at pkg/dir.jl:28
in test at pkg.jl:67

@aviks
Copy link
Owner

aviks commented Sep 1, 2015

That is really strange. Taro does indeed provide a test/runtests.jl file, as you can see here: https://github.com/aviks/Taro.jl/blob/master/test/runtests.jl

What version of Taro do you see when you do a Pkg.status()? What happens when you do a using Taro in the REPL? Which OS are you using?

@bcameron43
Copy link
Author

Using OS X 10.10.5, Taro v0.2.0

">using Taro" does not cause an error, but when I do "Taro.init()" it fails.

@aviks
Copy link
Owner

aviks commented Sep 4, 2015

What error do you see when you run Taro.init()

@bcameron43
Copy link
Author

init() not defined

@bcameron43
Copy link
Author

Also, I now realise I have to rebuild each time I launch julia to avoid an error when 'using Taro'

See below
'''
julia> using Taro
ERROR: Cannot find java library libjvm.dylib
Search Path:
/Users/benjamincameron
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/jre/lib/server
in error at error.jl:21
in findjvm at /Users/benjamincameron/.julia/v0.3/JavaCall/src/jvm.jl:65
in include at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib
in include at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:54
in include at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
while loading /Users/benjamincameron/.julia/v0.3/JavaCall/src/jvm.jl, in expression starting on line 68
while loading /Users/benjamincameron/.julia/v0.3/JavaCall/src/JavaCall.jl, in expression starting on line 33
while loading /Users/benjamincameron/.julia/v0.3/Taro/src/Taro.jl, in expression starting on line 3

julia> Pkg.build("Taro")
INFO: Building Taro

julia> using Taro

julia> Taro.init()
ERROR: init not defined

julia> init()
ERROR: init not defined
'''

@aviks
Copy link
Owner

aviks commented Sep 4, 2015

OK, so right there is your issue: ERROR: Cannot find java library libjvm.dylib ....

Taro (and its underlying JavaCall package) cannot find the JVM to load. It looks like you do not have a 1.7 version of the JDK installed in your machine. JavaCall, and hence Taro does not work with 1.6.

Please see http://aviks.github.io/JavaCall.jl/index.html for documentation relating to JavaCall.

@aviks
Copy link
Owner

aviks commented Sep 4, 2015

PS. I will look at making the init() error better.

@EricForgy
Copy link

I have a similar problem on Windows:

julia> using Taro
ERROR: LoadError: LoadError: InitError: Cannot find java library jvm.dll
Search Path:
   C:\Program Files\Julia-0.4.5

I never used JavaCall.jl, but noticed it was installed when I Pkg.add'ed Taro. It seems the installation instructions assume you have a working JavaCall.

This package looks interesting, but not enough to get me to want to fiddle with getting a proper JVM installed at this time. Any chance to make the installation smoother?

@rjplevin
Copy link

Just tried to install/use Taro on 0.62 on a Mac and got a seg fault:

Main> Pkg.add("Taro.jl")
INFO: Cloning cache of JavaCall from https://github.com/JuliaInterop/JavaCall.jl.git
INFO: Cloning cache of Taro from https://github.com/aviks/Taro.jl.git
INFO: Installing JavaCall v0.5.2
INFO: Installing Taro v0.5.0
INFO: Building SpecialFunctions
INFO: Building Taro
INFO:   Downloading tika-app-1.10.jar from Maven Central
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45.0M  100 45.0M    0     0  9229k      0  0:00:05  0:00:05 --:--:-- 10.4M
INFO:   Downloading fop-2.0 binary from Apache OSUOSL Mirror
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17.3M  100 17.3M    0     0  17.3M      0  0:00:01  0:00:01 --:--:-- 14.5M
INFO: Package database updated

Main> using Taro
Loaded /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/server/libjvm.dylib

Main> Taro.init()

signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
unknown function (ip: 0x1302f22b3)
Allocations: 66991281 (Pool: 66970489; Big: 20792); GC: 167

@aviks
Copy link
Owner

aviks commented Apr 11, 2018

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