Julia segmentation core dump error

I have tried multiple re-installs for julia. But found no luck. The julia exits with a warning “core dumped” after I try to install packages. Same results occurred with installed julia using curl and while using the tar ball version downloaded from the website.

Someone please help rectify this issue.

OS: linux mint 22 Julia version: 1.11.3

tried installing packages using “]” or “Pkg”. The julia showed warning about being unable to access or remove some file from registry folder of previous installation. I removed the folder manually. No luck so far. same results of exiting julia immediately after entering the “]”.

What’s the output of

ENV["LD_LIBRARY_PATH"]
ENV["LD_PRELOAD"]

inside Julia?

1 Like
julia> ENV["LD_LIBRARY_PATH"]
"/opt/openfoam11/thirdparty/platforms/linux64Gcc/gperftools-svn/lib:/usr/lib/x86_64-linux-gnu:/opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/paraview-5.11:/opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/opt/openfoam11/thirdparty/platforms/linux64Gcc" ⋯ 75 bytes ⋯ "in/OpenFOAM/sachin-11/platforms/linux64GccDPInt32Opt/lib:/opt/site/11/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam11/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam11/thirdparty/platforms/linux64GccDPInt32/lib:/opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/dummy"

julia> ENV["LD_PRELOAD"]
Segmentation fault (core dumped)

You’re breaking Julia by setting these environment variables. Try running Julia like this:

unset LD_LIBRARY_PATH
unset LD_PRELOAD
julia

Or just stop setting these environment variables globally, Julia isn’t the only software that will break.

1 Like

That worked. Thanks for the resolution.

1 Like

But that needs to be followed every time I need to use julia.

Edit your .bashrc file to make sure both variables are not set.

1 Like
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
	# We have color support; assume it's compliant with Ecma-48
	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
	# a case would tend to support setf rather than setaf.)
	color_prompt=yes
    else
	color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi


source /opt/openfoam11/etc/bashrc



Julia variables removed. but no luck.

sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ ./julia 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.3 (2025-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> Segmentation fault (core dumped)
sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ unset LD_LIBRARY_PATH 
sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ ./julia 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.3 (2025-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> add "IJulia"
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.11/Project.toml`
  No Changes to `~/.julia/environments/v1.11/Manifest.toml`
Precompiling project...
  ✗ VoronoiFVM
  ✗ PDELib
  0 dependencies successfully precompiled in 12 seconds. 280 already precompiled.
  2 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 2 direct dependencies failed to precompile:

PDELib 

Failed to precompile PDELib [89250b5f-5002-42e4-96e5-388c85c70594] to "/home/sachin/.julia/compiled/v1.11/PDELib/jl_noEadR".
ERROR: LoadError: UndefVarError: `umf_ctrl` not defined in `SparseArrays.UMFPACK`
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:42
 [2] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:557
 [4] include(x::String)
   @ VoronoiFVM ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:6
 [5] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:35
 [6] include
   @ ./Base.jl:557 [inlined]
 [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
   @ Base ./loading.jl:2881
 [8] top-level scope
   @ stdin:6
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile VoronoiFVM [82b139dc-5afc-11e9-35da-9b9bdfd336f3] to "/home/sachin/.julia/compiled/v1.11/VoronoiFVM/jl_DfmNuD".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base ./loading.jl:3174
  [3] (::Base.var"#1110#1111"{Base.PkgId})()
    @ Base ./loading.jl:2579
  [4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
  [5] #mkpidlock#6
    @ ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
  [7] #invokelatest#2
    @ ./essentials.jl:1057 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1052 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3698
 [10] maybe_cachefile_lock
    @ ./loading.jl:3695 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2565
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [13] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [16] macro expansion
    @ ./loading.jl:2314 [inlined]
 [17] macro expansion
    @ ./lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [19] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [20] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [22] include
    @ ./Base.jl:557 [inlined]
 [23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2881
 [24] top-level scope
    @ stdin:6
in expression starting at /home/sachin/.julia/packages/PDELib/fQsBc/src/PDELib.jl:1
in expression starting at stdin:6
VoronoiFVM 

Failed to precompile VoronoiFVM [82b139dc-5afc-11e9-35da-9b9bdfd336f3] to "/home/sachin/.julia/compiled/v1.11/VoronoiFVM/jl_PlcS2f".
ERROR: LoadError: UndefVarError: `umf_ctrl` not defined in `SparseArrays.UMFPACK`
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:42
 [2] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:557
 [4] include(x::String)
   @ VoronoiFVM ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:6
 [5] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:35
 [6] include
   @ ./Base.jl:557 [inlined]
 [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2881
 [8] top-level scope
   @ stdin:6
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:1
in expression starting at stdin:6

julia> 

Tried with removed variables. Precompile errors appeared while installing “IJulia” package and its dependencies.

Clearly you still have these environment variables defined before starting Julia. That’s certainly a bad practice independently of the fact that it crashes Julia, which is why I suggested you stop defining them globally.

I have shared my .bashrc file contents. Please highlight the variables. I will fix them. or share if there is any another way to remove these globally assigned env variables.

This line seems like the culprit.

BTW, if you want to know about what these environment variables do, see the ld.so manual page: ld.so(8) — Arch manual pages

Basically, they change code that’s being run, which will obviously result in breakage in general. That’s why they should almost never be set globally, instead you should set them only when it’s known they’re needed (which should be rare).

Removed the line from bashrc file. no changes in output of julia. same errors appeared.chin@sachin-Lenovo-IdeaPad-S340-14IIL:~$ source .bashrc sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~$ cd .julia sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia$ cd juliaup/ sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup$ ls julia-1.10.8+0.x64.linux.gnu julia-1.11.3+0.x64.linux.gnu juliaup.json sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup$ cd julia-1.11.3+0.x64.linux.gnu/ sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu$ ls bin etc include lib libexec LICENSE.md share sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu$ cd bin/ sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ ls julia sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ ./julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _ | |
| | || | | | (| | | Version 1.11.3 (2025-01-21)
/ |_|||_’_| | Official https://julialang.org/ release
|__/ |

(@v1.11) pkg> add “IJulia”
Resolving package versions…
No Changes to ~/.julia/environments/v1.11/Project.toml
No Changes to ~/.julia/environments/v1.11/Manifest.toml
Precompiling project…
✗ VoronoiFVM
✗ PDELib
0 dependencies successfully precompiled in 10 seconds. 280 already precompiled.
2 dependencies errored.
For a report of the errors see julia> err. To retry use pkg> precompile

julia> err
PkgPrecompileError: The following 2 direct dependencies failed to precompile:

PDELib

Failed to precompile PDELib [89250b5f-5002-42e4-96e5-388c85c70594] to “/home/sachin/.julia/compiled/v1.11/PDELib/jl_AXnaUK”.
ERROR: LoadError: UndefVarError: umf_ctrl not defined in SparseArrays.UMFPACK
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:42
[2] top-level scope
@ ~/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:557
[4] include(x::String)
@ VoronoiFVM ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:6
[5] top-level scope
@ ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:35
[6] include
@ ./Base.jl:557 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base ./loading.jl:2881
[8] top-level scope
@ stdin:6
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile VoronoiFVM [82b139dc-5afc-11e9-35da-9b9bdfd336f3] to “/home/sachin/.julia/compiled/v1.11/VoronoiFVM/jl_pAWSlB”.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
@ Base ./loading.jl:3174
[3] (::Base.var"#1110#1111"{Base.PkgId})()
@ Base ./loading.jl:2579
[4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
[5] #mkpidlock#6
@ ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
[6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
[7] #invokelatest#2
@ ./essentials.jl:1057 [inlined]
[8] invokelatest
@ ./essentials.jl:1052 [inlined]
[9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base ./loading.jl:3698
[10] maybe_cachefile_lock
@ ./loading.jl:3695 [inlined]
[11] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2565
[12] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2388
[13] #invoke_in_world#3
@ ./essentials.jl:1089 [inlined]
[14] invoke_in_world
@ ./essentials.jl:1086 [inlined]
[15] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2375
[16] macro expansion
@ ./loading.jl:2314 [inlined]
[17] macro expansion
@ ./lock.jl:273 [inlined]
[18] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2271
[19] #invoke_in_world#3
@ ./essentials.jl:1089 [inlined]
[20] invoke_in_world
@ ./essentials.jl:1086 [inlined]
[21] require(into::Module, mod::Symbol)
@ Base ./loading.jl:2260
[22] include
@ ./Base.jl:557 [inlined]
[23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2881
[24] top-level scope
@ stdin:6
in expression starting at /home/sachin/.julia/packages/PDELib/fQsBc/src/PDELib.jl:1
in expression starting at stdin:6
VoronoiFVM

Failed to precompile VoronoiFVM [82b139dc-5afc-11e9-35da-9b9bdfd336f3] to “/home/sachin/.julia/compiled/v1.11/VoronoiFVM/jl_EcqBr6”.
ERROR: LoadError: UndefVarError: umf_ctrl not defined in SparseArrays.UMFPACK
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:42
[2] top-level scope
@ ~/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:557
[4] include(x::String)
@ VoronoiFVM ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:6
[5] top-level scope
@ ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:35
[6] include
@ ./Base.jl:557 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2881
[8] top-level scope
@ stdin:6
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:1
in expression starting at stdin:6

julia>
`

The environment variables were set from your .bashrc, so they’re still around until you reboot or log out and log in.

BTW, while asking here is OK, in my opinion it’s better to ask such system administration questions which are not Julia-specific on a forum specific to your operating system/distro.

No luck with reboot either.

Some places where the environment variables could be set:

  • $HOME/.bashrc
  • $HOME/.bash_profile
  • $HOME/.profile
  • /etc/profile.d
  • /etc/environment

Check all of them, I guess.

You can also unset them at the end of .bashrc:

unset LD_LIBRARY_PATH
unset LD_PRELOAD

Or you create an alias:

alias jl='unset LD_LIBRARY_PATH; unset LD_PRELOAD; julia'

again at the end of .bashrc and then type jl to start Julia.

And you should NOT delete:

# >>> juliaup initialize >>>

# !! Contents within this block are managed by juliaup !!

case ":$PATH:" in
    *:/home/USERNAME/.juliaup/bin:*)
        ;;

    *)
        export PATH=/home/USERNAME/.juliaup/bin${PATH:+:${PATH}}
        ;;
esac

# <<< juliaup initialize <<<

where USERNAME is your user name.

1 Like

Checked. no variables defined except the openfoam bin path from .bashrc, which has been removed now.

What is the output of which julia typed at the Bash prompt?

(life) sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~$ which julia
/home/sachin/.juliaup/bin/julia