Skip to main content

Posts

Showing posts from November, 2015

[ubuntu] Removing the instance/package which is not fully installed from apt-get

When I'm installing g77-3.4 for pgplot, I trivially use dkpg to install it. However, g77-3.4-doc is not able to fully installed. And I stuck for this kind of error due to the broken packages (refer to here ): dpkg: error processing realplayer (--configure/--purge/--remove): (Whatever messages) Errors were encountered while processing: g77-3.4-doc cd /var/lib/dpkg/info sudo rm g77-3.4-doc* sudo dpkg --remove --force-remove-reinstreq g77-3.4-doc Hmm, now apt-get works well again. https://www.youtube.com/watch?v=S9HJ-iAzf3k

[s2plot] s2volsurf, PGPLOT, and PyNIfTI

Probably there is someone like me who is reappearing this paper's contributions: Embedding and Publishing Interactive, 3-Dimensional, Scientific Figures in Portable Document Format (PDF) Files The essential source codes can be download from the following (mentioned in s2volsurf 's Install.txt): pgplot NIFTICLIB For the installation (refer to my previous page), first of all, you have to change the path of cbuild.csh accordingly: For example, in build.csh, change the following line (my S2plot is installed in /usr/local/s2plot): cbuild.csh objrange to /usr/local/s2plot/scripts/cbuild.csh objrange  Then in cbuild.csh, the command for linking should be changed as well: (zlib bug?) from $S2CLINKER -o $target ${object} -L${S2PATH}/${S2KERNEL} ${S2LINKS} ${MLLINKS} ${SWLINKS} ${GLLINKS} -L${S2X11PATH}/lib${S2LBITS} ${S2FORMSLINK} -lX11 ${IMATH} -lm ${XLINKPATH} ${S2EXTRALIB} to $S2CLINKER -o $target ${object} -L${S2PATH}/${S2KERNEL} ${S2LINKS} ${MLLINKS} ${...

[s2plot] Installing S2PLOT on Ubuntu 14.04 LTS 64bits

Source code from S2PLOT: http://astronomy.swin.edu.au/s2plot/versions/s2plot-3.2.1.tar.bz2 Thanks for Navtej's BLOG , I almost follow his tutorial. Besides the issues mentioned in his blog, I also refer to this github . #This tutorial is used to reappear their guides #I executed all the following steps in root mode. ----------------------------------- Download the latest version of S2PLOT from official S2PLOT website . Install the essential packages: sudo apt-get install libhpdf-2.2.1 libhpdf-dev freeglut3 freeglut3-dev libfreetype6 libfreetype6-dev libgd2-xpm-dev g++ Extract the file to a directory where you want.  Follow the INSTALL.txt, I plan to install it under /usr/local/s2plot  build.csh is the only file we have to take care, as it executes the other scripts automatically. Then set up the essential environment variables: export S2PATH=/usr/local/s2plot export S2ARCH=linux-gnu-x86_64 export S2SHARED=yes export S2FREEGLUT=yes export S2FREETYPE=yes ...