Archive for October, 2012

The NVIDIA linux driver cannot be installed when the system is using the nouveau driver. The nouveau driver has been installed on all of the systems I’ve set up so far. To use the nvidia driver, do the following:

1. Edit /etc/grub.conf and add rdblacklist=nouveau vga=791 to the end of the kernel line.

2. yum remove xorg-x11-drv-nouveau

3. Edit /etc/inittab to change the runlevel to boot to from 5 to 3.

4. Create the file /etc/modprobe.d/blacklist-nouveau.conf and in it, put the following line:
blacklist nouveau

5. Reboot

6. Install the Nvidia driver and make sure to run the nvidia config in the last step.

7. Test it out by either rebooting or running init 5.

RHEL6 seems to prefer to use UUIDs in /etc/fstab instead of device names. So, will want to do something like this to get the uuid.

[root@server]# blkid|grep sda1 >> /etc/fstab

This then gets added to /etc/fstab.
/dev/sda1: UUID=”a7a23967-f2c5-43a7-9245-270a818b6106″ SEC_TYPE=”ext2″ TYPE=”ext3″

Edit the line so it looks like this:
UUID=a7a23967-f2c5-43a7-9245-270a818b6106 /local/s13 ext3 defaults 1 2

Install epel repo to download some needed packages:

http://mirror.chpc.utah.edu/pub/epel/6/i386/repoview/epel-release.html

Packages want to get from epel:

patchy
cernlib-2006
(will also get xbae)

From this website, download:

Manual
Makefile
isajet.car
isared.tar.gz

Unzip, but don’t untar the isared.tar.gz file.

The cernlib from the epel repo puts the files we are concerned about in /usr/lib64/cernlib/2006-g77/lib. However, it puts a version number on the libraries we want to use and this will cause an error in our Makefile. So, in /usr/lib64/cernlib/2006-g77/lib, make the following links:

ln -s libpacklib.so.1 libpacklib.so
ln -s libpdflib804.so.2 libpdflib804.so
ln -s libmathlib.so.2 libmathlib.so
ln -s libkernlib.so.1 libkernlib.so

Next, edit the Makefile with our info. Here is what the one I used looked like:

#       Do not change this -- you will break everything.
SHELL = /bin/csh

########## Installation parameters #####################################

#       Some versions of make (e.g. Linux) treat inconsequential warnings
# as errors and stop. Ignore all errors; comment out if possible:
##.IGNORE:

#       Name for temporary subdirectory. This will be deleted and 
# recreated:
MAKETMP = ./MakeTmpDir

#       Link with CERN libraries. This is recommended for HP, IBMRT, or 
# LINUX to get date and time information but is not required:
##CERN = NOCERN
CERN = CERN

#       Directories for Cernlib, terminated with a /. These must be set
# if you select CERN or PDFLIB:
CERNDIR = /usr/lib64/cernlib/
CERNBIN = $(CERNDIR)/bin/
CERNLIB = $(CERNDIR)lib/
CERNLIB2 = $(CERNDIR)2006-g77/lib/

#       PDFLIB support. PDFLIB (part of the CERN library) contains many
# partion distributions but produces a larger executable image:
PDFLIB =
#PDFLIB = PDFLIB

#       RANLUX support. RANLUX provides better random numbers than the
# standard RANF, and each seed gives an independent sequence. It is
# more difficult to restart and slightly slower.
RANLUX = RANLUX
#RANLUX = NORANLUX

#       Computer type. Most only differ in minor ways, e.g., the system
# clock interface. Uncomment the right one:
# ANSI          ANSI Fortran
# DECS          DECStation with Ultrix
# HPUX          HP/700 with HPUX
# IBMRT         IBM RS/6000 with AIX
# LINUX         PC with LINUX and f2c/gcc or g77 or Absoft f77
# OSF           Digital OSF on Alpha processor
# SGI           Silicon Graphics with IRIX
# SUN           Sparc or PC with Solaris
#MACHINE = ANSI
#MACHINE = DECS
#MACHINE = HPUX
#MACHINE = IBMRT
MACHINE = LINUX
#MACHINE = OSF
#MACHINE = SGI
#MACHINE = SUN

#       Fortran 77 compiler.
#F77 = f77
#       For HPUX; note that f77 on HPUX is brain dead. fort77 is also an
# alternate f2c/gcc interface on Linux:
#F77 = fort77
#       GNU Fortran compiler
#F77 = g77
F77 = /usr/bin/g77

#       Fortran compile flags: Want -c, highest safe optimization, all
# variables static, and postpended underscore for Cernlib compatibility.
# Uncomment the right one or make your own:
#       DECS
#FFLAGS = -c -O -static -w
#       HPUX, -O is broken
#FFLAGS = -c -O2 -K +ppu -w
#       IBMRT
#FFLAGS = -c -O -qextname -w
#       LINUX with f2c/gcc or g77. The -fno-silent displays progress...
FFLAGS = -c -O -fno-automatic -fno-silent
#       LINUX  with Absoft Fortran
#FFLAGS = -c -O -w -f -s
#       OSF
#FFLAGS= -c -O -w
#       SGI
#FFLAGS = -c -O -static -w
#       SUN - the second option traps floating errors
#FFLAGS = -c -O -w
#FFLAGS = -c -O -w -fnonstd -ftrap=common

#       Use fsplit or CERN's fcasplit to split the whole Fortran source into
# individual subroutines:
#FSPLIT = $(CERNBIN)fcasplit
#FSPLIT = fsplit
FSPLIT = /usr/bin/fcasplit

#       Link command for Fortran, c.f. $(F77):
#LINK = f77
#LINK = fort77
#LINK = g77
LINK = $(F77)

#       Extra libraries (e.g. Cernlib) and flags for link. If you want 
# PDFLIB support, you must also define $(PDFLIB) above. The Zebra
# version requires libpacklib.a.
#LFLAGS =
#LFLAGS = -L$(CERNLIB) -lmathlib -lkernlib
#LFLAGS = -L$(CERNLIB) -lpdflib804 -lmathlib -lkernlib
LFLAGS = -L$(CERNLIB) -L$(CERNLIB2) -lpdflib804 -lpacklib -lmathlib -lkernlib

#       Ranlib command if required (it is for Sun 4.x and Linux):
RANLIB = ranlib
#RANLIB = $(ECHO)

#       Name for this Makefile:
MAKEFILE = Makefile

#       Patchy commands. YPATCHY can be either ypatchy or nypatchy,
# perhaps with a full path. A temporary cradle file YCRADLE is required;
# it is deleted and recreated:
#YPATCHY = $(CERNBIN)ypatchy
#YPATCHY = $(CERNBIN)nypatchy
YCRADLE = ./tmpcradle.cra
YPATCHY = /usr/bin/nypatchy

#       Echo command. /bin/echo works on most (all?) systems; plain echo
# fails on AIX 4.1:
ECHO = /bin/echo

#       Remove command:
RM = /bin/rm

#       Parameters to use ISATOOLS and ISAFLAVR. Note ISAFLAVR does not
# create a separate library.

ISATOOLS = ISATOOLS
#ISATOOLS =

LIBTOOLS = -lisared
#LIBTOOLS =

ISAFLAVR = ISAFLAVR
#ISAFLAVR =

########## End of installation parameters ##############################

Next make isatools.

[root@higgs isajet]# make isatools

Takes a while to run. This creates the file libisared.a.

Next run make.

[root@higgs isajet]# make

This should produce the following executables: isajet.x, isasusy.x and isasugra.x. You can run make clean to get rid of the temporary files.