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

Using incanter.stats.linear-model produces CompilerException java.lang.UnsatisfiedLinkError: org.jblas.NativeBlas.dgemm #271

Open
sinemetu1 opened this issue Sep 24, 2014 · 2 comments

Comments

@sinemetu1
Copy link

I'm on OSX 10.9.5. I installed gcc via homebrew and included fortran. libgfortran is on my path:

export PATH=$PATH:/usr/local/Cellar/gcc/4.9.1/bin

and

$ ls -lh /usr/local/Cellar/gcc/4.9.1/bin/gfortran*
lrwxr-xr-x  1 auser  admin    12B Sep 23 23:12 /usr/local/Cellar/gcc/4.9.1/bin/gfortran -> gfortran-4.9
-r-xr-xr-x  2 auser  admin   1.1M Sep 23 23:11 /usr/local/Cellar/gcc/4.9.1/bin/gfortran-4.9

project.clj contains:

  :dependencies [[org.clojure/clojure    "1.6.0"]
                 [net.mikera/core.matrix "0.29.1"]
                 [clatrix                "0.4.0"]
                 [incanter               "1.5.5"]]

To produce from repl:

    (use 'incanter.stats)
    (def X [8.401 14.475 13.396 12.127 5.044 8.339 15.692 17.108 9.253 12.029])
    (def Y [-1.57 2.32 0.424 0.814 -2.3 0.01 1.954 2.296 -0.635 0.328])
    (def samp-linear-model
      (linear-model X Y))

    => CompilerException java.lang.UnsatisfiedLinkError:
        org.jblas.NativeBlas.dgemm(CCIIID[DII[DIID[DII)V, compiling:(form-init4455933030563083782.clj:2:3)

I also tried adding [jblas/native "1.2.0"] to my project.clj and received the same error message.

Any help is appreciated. Thanks.

@alexott
Copy link
Contributor

alexott commented Dec 28, 2014

Do you still have this problem? I'm using the homebrew with 10.8 without any problems (the same version of GCC as on your machine)

@behrica
Copy link
Contributor

behrica commented Sep 13, 2015

I got the same error by using the incanter from Docker.
For me it was a missing fortran library.

See #309

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

3 participants