< tHis Is yOungMusiC.oRg >

hoMe - BiO - ConCerTs - mUsic - SofTwarE - vaRia - linX - conTaCt

My Pike installation

This page describes my Pike setup with ubuntu 10.2. Needed to run my more recent software.

  • on a fresh install, download libs but i cannot remember all of them right now.
sudo apt-get install libgmp3-dev nettle-dev libffi-dev libgnomeui-dev  
sudo apt-get install glade-gnome freeglut3-dev libfuse-dev libbz2-dev libglib2.0-dev libgtk2.0-dev  
  • Go to the install dir and remove the previous version
sudo rm -fr /usr/local/pike7.8.whatever  
  • Download Pike from this site. Do use the stable version for now, because otherwise GTK2 does not find the FileChooserDialog object.
  • unpack and go to source directory
  • type
rm -fr bundles  
make  
sudo make install            

Add Midi support

To compile portmidi we need the ccmake system. But that won't work with openjdk, which is now a standard in ubuntu. First we'd have to change to sun's jdk. So do:

add-apt-repository "deb http://archive.canonical.com/ lucid partner"  
apt-get update  
apt-get install sun-java6-jdk  update-alternatives --config java  
apt-get install cmake cmake-curses-gui   
ccmake .  
make  
make install  

On a 64 bit system, it is also needed to correct the path to libjvm.so in pm_common/CMakeLists.txt

  • deleting old module files and adding some modules from pikemonger. Here the file /usr/local/pike/7.8.352/include/pike/precompile.pike does a wrong redirection, add ../ before the path.
sudo rm -fr /home/yvan/.monger/*  sudo pike -x monger --install Public.Parser.JSON2    
  • download the Midi module from [modules.gotpike.org] and compile/install with:
pike -x module  pike -x module install  

Pike as a library

I didn't have much success using this yet...

make distclean  
export CFLAGS=-fPIC   
make libpike  
sudo cp build/linux-x-x/libpike.so /lib  
sudo ldconfig -n /lib