Installation problems

Revision as of 14:25, 17 June 2008 by Teuben (Talk | contribs)

Jump to: navigation, search


Installation Problems

If you have installed from source and have seen a sentence such as

  installed 13/344 programs

something bad has happened. Most likely during building or linking a common error occured for each problem. You can look in the logfiles in $MIR/tmp or try and compile a program to see it directly on the screen:

  mir.subs fitsio
  mir.prog itemize

and see if any of the common problems below fit the description:

PGPLOT problems

  • A common problem is a missing driver. Here is a recipe to enable a driver that you know will work:
 edit $MIRLIB/drivers.list                <--- (un)comment the drivers you want to include/exclude
 mir.install pgplot

When shared libraries are used, this is usually enough, all problems that use PGPLOT should now know about the new driver set. Use device=\? to view the active list.

Common Problems

If you install from source, two of the most common problems for failure are:

  • a missing or wrong fortran compiler. As of this writing g77 is still the default, but newer versions of gfortran now know how to build pgplot and no patching is needed anymore (except the keyword gfortran=1 to the install.miriad script).
  • missing development packages. On linux your package manager should be queried for these. Unfortunately not each linux distribution (or version) will use the exact same name for this. A common example is the X11 development package. For example pgplot will need a file /usr/include/X11/Xos.h (it could also live somewhere else).
    • fedora core 7: xorg-x11-proto-devel-7.2-9.fc7
    • ubuntu 8.04:
    • mandrive 2008: libxorg-x11-devel
    • mandrake 10.1: libxorg-x11-devel-6.8.2-0.5mdk
  • on 64bit ubuntu8.04 here's a report on how to fix the system, where the libXaw library was 'missing', and also includes an example of installing some missing system tools.
  cd /usr/lib  ;  ln -s
  apt-get install gfortran
  apt-get install g++
  cd /usr/local/miriad_cvs
  ./configure --prefix=`pwd`/build F77=gfortran
  make install
  • the new build system has not been thoroughly tested. A common problem is with that results in a make that ends disappointingly as follows:
 make[1]: *** No rule to make target `install'.  Stop.
 make[1]: Leaving directory `/algol1/teuben/miriad/auto/miriad/borrow/pgplot'
 make: *** [install-recursive] Error 1
  • the new build system may fail on latex building the manuals. If so, use 'make -i' instead.
  • if you try to compile a program and you see some error message like this:
  /usr/bin/ld: cannot find -lpgplot

most likely you have missing components on your system. Missing header file you might see. It means you did not install the development software for X11 on your system. It's one of the requirements. If this happens on a mac, go install Xcode. On linux you'll need to install packages. Here's some possible options:

  fedora 7/9:  yum install xorg-x11-proto-devel
  ubuntu 8:  apt-get install ....

Unsolved problems

  • some linker issue on Ubuntu?
  % mir.prog itemize
  /usr/bin/ld: /home/ijlee/miriad/bin/linux/itemize: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
  /usr/bin/ld: final link failed: Nonrepresentable section on output
  collect2: ld returned 1 exit status
Personal tools