from:	Peter Teuben 
to:	smamiriad@cfa.harvard.edu
date:	Sat, Oct 21, 2017 at 8:15 AM
subject:	Re: libg2c error...
mailing list:	smamiriad@cfa.harvard.edu

Charl

   this error indicates a very old miriad binary that was built again libg2c. 
So is there a $MIR/VERSION file?  Any idea where you got the miriad from, is 
this the SMA binary,or some other? I would have expected libgfortran. 
E.g. mine:

ldd `which cgdisp`
    linux-vdso.so.1 =>  (0x00007fff73cf6000)
    libmir.so => /astromake/opt/miriad/cvs/lib/linux/libmir.so (0x00007f0b8be60000)
    libpgplot.so => /astromake/opt/miriad/cvs/lib/linux/libpgplot.so (0x00007f0b8bbec000)
    libpgsbox.so.4 => /astromake/opt/miriad/cvs/lib/linux/libpgsbox.so.4 (0x00007f0b8b9df000)
    libwcs.so.4 => /astromake/opt/miriad/cvs/lib/linux/libwcs.so.4 (0x00007f0b8b6cf000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f0b8b395000)
    libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f0b8b06a000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0b8ad61000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0b8a997000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0b8a775000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0b8a571000)
    libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f0b8a332000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0b8a11c000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f0b99659000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f0b89f18000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f0b89d12000)



peter



On 10/21/2017 06:19 AM, Charl van der Walt wrote:
> Hi there,
>
> I am trying to run Miriad on a 64 bit Ubuntu 16.04 installation, 
> and I did all the instructions for installation, but when I want 
> to run a miriad command (for example cgdisp) it gives me an error:
>
> cgdisp: error while loading shared libraries: libg2c.so.0: cannot 
> open shared object file: No such file or directory
>
> I tried to look for the libg2c library to install it separately, 
> but it seems like it is obsolete and is replaced by libg2_def 
> package, but that does not work. Have you encountered this 
> problem before? Any help or advice will be appreciated.
>
> Best wishes,
>
> Charl van der Walt
> Niels Bohr Institute, Copenhagen Denmark
> --