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 start julia-1.8.5 on hcp with Linux #48873

Closed
Zou-Bo opened this issue Mar 2, 2023 · 8 comments
Closed

Can't start julia-1.8.5 on hcp with Linux #48873

Zou-Bo opened this issue Mar 2, 2023 · 8 comments

Comments

@Zou-Bo
Copy link

Zou-Bo commented Mar 2, 2023

I can't start julia-1.8.5 on my school's hcp server using Linux, but julia-1.6.7 works well.

The julia-1.8.5 is installed as the website "https://julialang.org/downloads/platform/#linux_and_freebsd" instructs.

I receive the error message as follows:

fatal: error thrown and no exception handler available.
InitError(mod=:Sys, error=ErrorException("PCRE compilation error: unrecognised compile-time option bit(s) at offset 0"))
error at ./error.jl:35
compile at ./pcre.jl:155
compile at ./regex.jl:82
#occursin#468 at ./regex.jl:265 [inlined]
occursin at ./regex.jl:264 [inlined]
isdirpath at ./path.jl:117 [inlined]
normpath at ./path.jl:373
abspath at ./path.jl:430
abspath at ./path.jl:439 [inlined]
__init_build at ./sysinfo.jl:128
__init__ at ./sysinfo.jl:120
jfptr___init___47949.clone_1 at /home1/06427/zoubo/julia-1.8.5/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2559
jl_apply at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/julia.h:1843 [inlined]
jl_module_run_initializer at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/toplevel.c:75
_finish_julia_init at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/init.c:765
julia_init at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/init.c:698
jl_repl_entrypoint at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/jlapi.c:713
main at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/cli/loader_exe.c:59
__libc_start_main at /usr/lib64/libc.so.6 (unknown line)
unknown function (ip: 0x401098)
@KristofferC
Copy link
Sponsor Member

KristofferC commented Mar 2, 2023

Is the environment variable LD_LIBRARY_PATH set?

@Zou-Bo
Copy link
Author

Zou-Bo commented Mar 3, 2023

Sorry, I don't how to set that.

@Seelengrab
Copy link
Contributor

If you've just downloaded the executable from the website, you should be able to query that environment variable using something like echo $LD_LIBRARY_PATH. Please post the output of that command here.

@Zou-Bo
Copy link
Author

Zou-Bo commented Mar 3, 2023

Here's the output

$ echo $LD_LIBRARY_PATH

/opt/apps/pmix/3.2.3/lib:/opt/apps/intel19/python3/3.9.7/lib:/opt/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/libfabric/lib:/opt/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/lib/release:/opt/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/lib:/opt/intel/debugger_2020/libipt/intel64/lib:/opt/intel/compilers_and_libraries_2020.1.217/linux/daal/lib/intel64_lin:/opt/intel/compilers_and_libraries_2020.1.217/linux/tbb/lib/intel64_lin/gcc4.8:/opt/intel/compilers_and_libraries_2020.1.217/linux/mkl/lib/intel64_lin:/opt/intel/compilers_and_libraries_2020.1.217/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2020.1.217/linux/compiler/lib/intel64_lin:/opt/apps/gcc/9.4.0/lib64:/opt/apps/gcc/9.4.0/lib:/usr/lib64

@giordano
Copy link
Contributor

giordano commented Mar 3, 2023

Start Julia with

LD_LIBRARY_PATH="" julia

@Zou-Bo
Copy link
Author

Zou-Bo commented Mar 3, 2023

Thanks, this approach does work. I can start Julia with that, but I wonder if there's a way to fix this so that I can directly start it. That may be helpful as I plan to use vs code instead of the command line.

@Zou-Bo
Copy link
Author

Zou-Bo commented Mar 3, 2023

Can I fix this by fixing the PCRE that shows in the error message?

@ufechner7
Copy link

ufechner7 commented Mar 4, 2023

You can for example create a script with the name julia18 and the content

LD_LIBRARY_PATH="" julia

Then you configure vscode to execute julia18 instaed of julia.

Make the script executable with:

chmod +x julia18

and put it in a folder that is in the search path, for example into the same folder as the executable julia.

@DilumAluthge DilumAluthge closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2023
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

6 participants