This question already has an answer here:

So I am new to Linux and I was trying to run a Julia program using

 julia transport.jl

However when enter that in terminal I get the following

ERROR: LoadError: LoadError: LoadError: LoadError: LoadError: error compiling init: could not load library "/usr/lib/x86_64-linux-gnu/libgobject-2.0.so"
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so: cannot open shared object file: No such file or directory
while loading /home/david/.julia/v0.4/Tk/src/tkwidget.jl, in expression starting on line 455
while loading /home/david/.julia/v0.4/Tk/src/Tk.jl, in expression starting on line 37
while loading /home/david/.julia/v0.4/Winston/src/tk.jl, in expression starting on line 1
while loading /home/david/.julia/v0.4/Winston/src/Winston.jl, in expression starting on line 2854
while loading /home/david/Documents/School/PDE1/examples/transport.jl, in expression starting on line 2

Any help would help, especially any literature that will introduce me to the Linux environment.

I'm running Ubuntu 16.04.

marked as duplicate by Zanna, Pilot6, David Foerster, Eric Carvalho, Charles Green Aug 31 '17 at 14:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    How did you install Julia? – edwinksl Aug 29 '17 at 22:29
  • I downloaded the tar, extracted it into its own folder, ran sudo apt-get install julia, then finally created a symbolic link to it. – David Aug 29 '17 at 22:35
  • 1
    Why did you do that? Running sudo apt install julia would handle the installation fully and you wouldn't need to do anything else. What symlink did you create? That is probably the cause of the problem. Please edit your question and add more information... – Zanna Aug 30 '17 at 9:18

Looks like you're missing libglib2.0

You can install it with:

sudo apt-get install libglib2.0
  • I get the following The following packages have unmet dependencies: libglib2.0-dev : Depends: python:any (>= 2.6.6-7~) – David Aug 29 '17 at 22:48
  • Try to resolve that with sudo apt-get install -f – Weston Reed Aug 29 '17 at 22:49
  • That did nothing – David Aug 29 '17 at 22:50
  • Can you try to install python? sudo apt-get install python – Weston Reed Aug 29 '17 at 22:52
  • Nothing happens again. It says I have Python 2.7.13-1 – David Aug 29 '17 at 22:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.