How to get CMKIN running on mill:

setenv VO_CMS_SW_DIR /home/opt/cms/software
source /home/opt/cms/xcmsi/cmsset_slc3_ia32_gcc323.csh

setenv CERN_LEVEL 2004/slc3_ia32_gcc323
setenv CVS_RSH ssh
setenv CVSROOT

login to cvs

cvs co CMKIN

cd CMKIN/examples/make_ntpl_jobs

project CMKIN CMKIN_6_2_0 pythia

Gives error message

Using Pythia version 6403
ar: /home/opt/cms/software/Releases/CMKIN/CMKIN_6_2_0/lib/slc3_ia32_gcc323/libpythia6403.a: No such file or directory
g77: pydata.o: No such file or directory

look at the library path
to check the pythia version and modify the com file
set npyt=6325

Gives error message
/usr/bin/ld: cannot find -lshift

Modify the com file to use normal compile library linkage instead of cernlib macro

set cernlibs="-L$CERN_ROOT/lib -l$PDFLIB -lpawlib -lgrafX11 -lpacklib_noshift -lmathlib -lkernlib"

Now it compiles ok.

Next create a datacard in datacards/, modify the to read that datacard, set number of events to be run (NSEL command), set the correct pythia version and execute the job pythia