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 while installing Julia on linux #8998

Closed
zapsdcn opened this issue Nov 13, 2014 · 6 comments
Closed

error while installing Julia on linux #8998

zapsdcn opened this issue Nov 13, 2014 · 6 comments

Comments

@zapsdcn
Copy link

zapsdcn commented Nov 13, 2014

Hi all,

I'm trying to use Julia on the cluster system of my school, a front end with linux os.

It seems you need to load modules before you use some applications like Java, Python or MATLAB.

So I try to install Julia following the instructions, but there are different errors.

I checked the topic error compiling openblas with older assembler #7653, as there are Haswell errors.

Then I changed my Make.user file into:

OPENBLAS_TARGET_ARCH=NEHALEM
OPENBLAS_USE_THREAD=0
OPENBLAS_DYNAMIC_ARCH = 0
OPENBLAS_NO_AVX2=1
USE_SYSTEM_BLAS=1
LIBBLAS=-lopenblas
LIBBLASNAME=libopenblas

The error shows:

LAPACK 3 . 5 . 0
/usr/bin/ld: cannot find -lopenblas
collect2: ld returned 1 exit status
make[2]: *** [lapack-3.5.0/liblapack.so] Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

The system info:
(gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) )

May I know how to fix this?

Thanks for help!

@tkelman
Copy link
Contributor

tkelman commented Nov 13, 2014

The only thing you should need for Red Hat 6 right now is OPENBLAS_NO_AVX2=1. Unless your system has a copy of openblas already installed, you don't want to set any of

USE_SYSTEM_BLAS=1
LIBBLAS=-lopenblas
LIBBLASNAME=libopenblas

You might have newer hardware than Nehalem, and OPENBLAS_USE_THREAD=0 means you won't get multithreaded linear algebra which you probably do want. We should probably clean up the advice message to reflect the only errors we've seen lately, which have been these RHEL6 old-binutils problems.

Another option is you can try the generic Linux binaries from https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.2-linux-x86_64.tar.gz

@zapsdcn
Copy link
Author

zapsdcn commented Nov 13, 2014

Thanks for help!

I tried to use the generic linux binaries before, but I'm not sure if I'm doing it right.

I extract the installation file to a folder named julia-some~number, and I couldn't use the command "make" in that folder. So what else should I know to use this generic binary file?

@tkelman
Copy link
Contributor

tkelman commented Nov 13, 2014

Maybe we should put instructions in there. It's a binary, so you don't need to run make. There should be a bin/julia executable that you can just run, no compiling needed.

@zapsdcn
Copy link
Author

zapsdcn commented Nov 13, 2014

Thank you very much for your help!

After I change the Make.user file, it finally begin to work.

OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE)

OS ... Linux
Architecture ... x86_64
BINARY ... 64bit
Use 64 bits int (equivalent to "-i8" in Fortran)
C compiler ... GCC (command line : gcc -m64)
Fortran compiler ... GFORTRAN (command line : gfortran -m64)
Library Name ... libopenblas_nehalemp-r0.2.12.a (Multi threaded; Max num-threads is 16)

To install the library, you can run "make PREFIX=/path/to/your/installation install".

And I just did this as he told me to.

But the problem is only under the installation folder, I can use the "./julia" command to open julia and use it as usual, with a command window and I can type in commands after ">>".

But in my other Ubuntu system, I can use command "julia " under any folder to open julia. And I can easily use the "julia script.jl" command in terminal window to run my script. It seems I can't do it here.

Is there any other variables I need to set to make it similar to the situation in Ubuntu?

By the way, it seems I have to define a privatemodule file to use my own modules and the example includes:

prepend-path PATH /projects/lib...
prepend-path LD_LIBRARY_PATH /projects/...

How should I change the variables relating to the Julia?

Thank you for your help! Hope I explain it clearly.

@ViralBShah
Copy link
Member

On ubuntu, you may have installed from the PPA with apt-get and julia is in the standard /usr/bin directory. If you are building from source, you will have to add the julia path to your search path (assuming bash) with export PATH=$PATH:/path/to/julia.

@zapsdcn
Copy link
Author

zapsdcn commented Nov 13, 2014

Oh, I see. I can try this. Thank you for your help!

@zapsdcn zapsdcn closed this as completed Nov 13, 2014
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