# Julia is running only with root user and for other users throwing error "could not load library sys.so"

**URL:** <https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744>\
**Category:** General Usage\
**Created:** [March 15, 2018, 8:55pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744 "2018-03-15T20:55:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaleem\_M](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kaleem\_M](https://discourse.julialang.org/u/Kaleem_M)\
**Post date:** [March 15, 2018, 8:55pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/1 "2018-03-15T20:55:32Z")

</div>

Hi All,  
Julia is working with root user only and not working with other users. It is throwing the following error message. Please advise  
OS: ubuntu 16.04  
Julia: 0.6.2.2

ERROR: could not load library “/julia/JuliaPro-0.6.2.2/…/lib/julia/sys.so”  
/julia/JuliaPro-0.6.2.2/…/lib/julia/sys.so: cannot open shared object file: No such file or directory

Thanks  
Kaleem

---

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [March 16, 2018, 6:09pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/2 "2018-03-16T18:09:30Z")

</div>

Where is Julia installed? What command do you run to start it?

---

<div class="post-metadata">

**Author:** ![Kaleem\_M](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kaleem\_M](https://discourse.julialang.org/u/Kaleem_M)\
**Post date:** [March 18, 2018, 5:28am UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/3 "2018-03-18T05:28:24Z")

</div>

Julia is installed on Ubuntu 16.04 under /julia folder and running julia command on command prompt as well as tried going inside the folder where julia command is but no success.

Best Regards,  
MK

---

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [March 18, 2018, 1:27pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/4 "2018-03-18T13:27:16Z")

</div>

What the exact path to the `julia` executable? What does `ldd` print when called on that file (both under the root user and under other users)?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 18, 2018, 6:24pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/5 "2018-03-18T18:24:38Z")

</div>

> [@Kaleem\_M](#):
>
> Julia is installed on Ubuntu 16.04 under /julia folder and running julia command on command prompt as well as tried going inside the folder where julia command is but no success.

Probably you copied it there as `root` and didn’t set the permissions correctly on that directory. Try `chmod -R a+rX /julia` (as root or via sudo)

---

<div class="post-metadata">

**Author:** ![aaowens](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aaowens/32/12101_2.png) [@aaowens](https://discourse.julialang.org/u/aaowens)\
**Post date:** [March 18, 2018, 6:34pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/6 "2018-03-18T18:34:33Z")

</div>

It sounds like you installed JuliaPro to the root directory, probably using sudo. The JuliaPro docs suggest installing to your home directory as:

```julia
./JuliaPro-0.6.2.2.sh /home/julia/

```

Maybe try reinstalling with that command, and not using sudo?

---

<div class="post-metadata">

**Author:** ![Kaleem\_M](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kaleem\_M](https://discourse.julialang.org/u/Kaleem_M)\
**Post date:** [March 19, 2018, 3:18am UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/7 "2018-03-19T03:18:18Z")

</div>

Thanks. I will try to install as you said and let you know.

Best Regards,  
MK

---

<div class="post-metadata">

**Author:** ![Kaleem\_M](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kaleem\_M](https://discourse.julialang.org/u/Kaleem_M)\
**Post date:** [March 19, 2018, 3:20am UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/8 "2018-03-19T03:20:07Z")

</div>

Hi Steven,

I did provided 777 permission on the /julia folder and subfolders too but it didn’t work.

Best Regards,  
MK

---

<div class="post-metadata">

**Author:** ![Kaleem\_M](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kaleem\_M](https://discourse.julialang.org/u/Kaleem_M)\
**Post date:** [March 19, 2018, 4:31pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/9 "2018-03-19T16:31:38Z")

</div>

Hi,  
I tried installing in my local user as mentioned below but it is giving permission denied error.

PermissionError: [Errno 13] Permission denied: ‘/home/avadmin/.local/lib/python3.6’

Please advise

Thanks

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [March 19, 2018, 4:50pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/10 "2018-03-19T16:50:19Z")

</div>

It seems like that is probably owned by root and does not have the world read bit set. You may want to do some liberal `chown`ing of your home directory.

---

<div class="post-metadata">

**Author:** ![Kaleem\_M](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kaleem\_M](https://discourse.julialang.org/u/Kaleem_M)\
**Post date:** [March 20, 2018, 3:58pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/11 "2018-03-20T15:58:47Z")

</div>

Hi,

Now, even installation is giving error as shown below. I have tried with Sudo and as login as root too but no luck.

WITH SUDO

avadmin@cibcaivm1:~/Downloads$ sudo ./[JuliaPro-0.6.2.2\_build-314.sh](http://JuliaPro-0.6.2.2_build-314.sh) /julia2

JuliaPro installation has started, please wait until all the files are extracted

OS Detected: Ubuntu 16.04.4 LTS

Online Installation : Requires internet access

Like: Ubuntu

Checking pre-requisites…

Installing JuliaPro-0.6.2.2 to /julia2

Running postinstall script

ERROR: could not load library “/usr/share/julia/JuliaPro-0.6.2.2//…/lib/julia/sys.so”

/usr/share/julia/JuliaPro-0.6.2.2//…/lib/julia/sys.so: cannot open shared object file: No such file or directory

postinstall script run

/home/avadmin/Downloads

WITH ROOT USER

root@cibcaivm1:/home/avadmin/Downloads# ./[JuliaPro-0.6.2.2\_build-314.sh](http://JuliaPro-0.6.2.2_build-314.sh) /usr/share/julia1

JuliaPro installation has started, please wait until all the files are extracted

OS Detected: Ubuntu 16.04.4 LTS

Online Installation : Requires internet access

Like: Ubuntu

Checking pre-requisites…

Installing JuliaPro-0.6.2.2 to /usr/share/julia1

Running postinstall script

ERROR: could not load library “/usr/share/julia/JuliaPro-0.6.2.2//…/lib/julia/sys.so”

/usr/share/julia/JuliaPro-0.6.2.2//…/lib/julia/sys.so: cannot open shared object file: No such file or directory

postinstall script run

/home/avadmin/Downloads

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [March 20, 2018, 6:19pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/12 "2018-03-20T18:19:06Z")

</div>

Rather than running as root you should fix the file permissions so that you can run as your normal user.

---

<div class="post-metadata">

**Author:** ![Kaleem\_M](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kaleem\_M](https://discourse.julialang.org/u/Kaleem_M)\
**Post date:** [March 20, 2018, 8:24pm UTC](https://discourse.julialang.org/t/julia-is-running-only-with-root-user-and-for-other-users-throwing-error-could-not-load-library-sys-so/9744/13 "2018-03-20T20:24:19Z")

</div>

I gave full permission to complete folder and sub folders where julia is installed but no luck.

Best Regards,  
MK
