|
|
Bioscreencast Wiki > Crystallography Howtos > Installing ccp4-6.0.99e on 64 bit Ubuntu
Installing ccp4-6.0.99e on 64 bit UbuntuFrom $1Table of contentsNo headersA really short guide to getting ccp4-6.0.99e running on a dual cpu , 64 bit Ubuntu box . The installation of Ubuntu was a default installation from CD with no customization of the kernel. The steps followed to get CCP4 working were:
xplot84driver.c:18:29: error: X11/Xaw/Command.h: No such file or directory We will provide those with "sudo apt-file search Command.h" to find the library . The library exists in xaw3dg-dev. Install it "sudo apt-get install xaw3dg-dev". This installs the include files in "/usr/include/X11/Xaw3d/Command.h" whereas the source files expect the header files in X11/Xaw /Coomand.h At this step , I manually edited the files and changed their includes definition to match the system location . The Files I had to edit were xplot84driver.c . EditString.h , EditStringP.h , msg_box.c , hardcopy_ctrl.c and plot84_file.c. Running make after editing these files gives an error complaining that "cannot find -lXaw" "sudo apt-get install libxaw7-dev" takes care of that
17. Now we need to install tcl tk , blt and their header files and associated libraries
18. Now get the BLT source from sourceforge wget http://downloads.sourceforge.net/blt...0&big_mirror=0 You also need a patch file for compiling bltwish for 64 bit. Reproduced here. Copy this file to the root directory of the blt2.4z and run patch -p0 <copied-patch-file.patch
--- blt2.4z/src/bltTree.c.64bit-fixes 2002-09-29 07:44:12.000000000 +0200 +++ blt2.4z/src/bltTree.c 2003-07-31 12:22:53.000000000 +0200 @@ -95,17 +95,16 @@ static Value *TreeNextValue _ANSI_ARGS_( */ #define REBUILD_MULTIPLIER 3 +#define START_LOGSIZE 5 /* Initial hash table size is 32. */ +#define MAX_LIST_VALUES 20 /* Convert to hash table when node + * value list gets bigger than this + * many values. */ #if (SIZEOF_VOID_P == 8) #define RANDOM_INDEX(i) HashOneWord(mask, downshift, i) #define BITSPERWORD 64 #else -#define START_LOGSIZE 5 /* Initial hash table size is 32. */ -#define MAX_LIST_VALUES 20 /* Convert to hash table when node - * value list gets bigger than this - * many values. */ - /* * The following macro takes a preliminary integer hash value and * produces an index into a hash tables bucket list. The idea is This patches the blt source CD into the source and configure it with the command ./configure --prefix . --with-blt=. --with-tcl=/usr/lib/tcl8.4 --with-tk=/usr/lib/tk8.4 --with-tclincls=/usr/include/tcl8.4 --with-tkincls=/usr/include/tcl8.4 --x-libraries=/usr/lib/X11/ Then run the config.status with "./config.status" to get the Makefile. Run "make" and "sudo make install" You can also manually copy the blt2.4z/src/bltwish executable to the /usr/bin directory and then edit the $CCP4I_TCLTK to point to the /usr/bin directory Run ccp4 i and everything other than phaser should be setup
Note1: For some reason the bash setup script returns a mysteious error "bash: 1: command not found " . but the ccp4-setup.sh works just fine. So just type "source include/ccp4-setup.sh" and that should work. Also Martin Wynns Note here explains whats wrong with ccp4-setup.bash. its got to do with an improper "alias" definition Note2: The xplot84driver has some issues . To get around these use pltdev to convert *.plt files to *.ps files . See this page for troubleshooting Patterson map viewing problems
Tags:
|
Powered by MindTouch Deki Open Source Edition v.8.08.1 |