[racket] Racket on Centos?

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Sat Jan 17 01:26:36 EST 2015

If you want to do this without the additional work to create CentOS 
packages... I suspect you'd get the best results by building Racket on a 
different machine/VM that mimics the target VM, then just copy files to 
the target VM.

Specifically, set up a beefier CentOS install (on a spare machine or in 
a different VM, or even in a temporarily beefier-than-usual server 
instance by the provider for your target VM) that mimics the 
architecture and distro version (6.0.1) of your target VM closely, and 
build Racket on that.  I recommend building to put Racket in its own 
install tree, with `--prefix=/usr/local/racket-6.1.1` or at least 
`--prefix=/usr/local/racket`.

In the course of getting it to build, you'll probably install on your 
builder a bunch of libraries/packages that are not on your target VM, 
and write down each one for later.  (Ideally, all of these can be 
installed as CentOS packages on target VM.  If not, you'll probably end 
up with the non-ideal practice of building against CentOS package shared 
libraries, and then copying shared libraries to target VM, where they 
will unfortunately be outside management of the package system.)

Then, once built and tested, make a script that copies to your target VM 
both the the Racket install tree and any necessary libraries and such 
(from packages that cannot otherwise be installed on your target VM).  
(Script is because you'll usually do this many times (to get it to work, 
then for different Racket versions or different VMs), and want 
time-saving and repeatability.)  Another script to install any CentOS 
packages on target VM that *can* be installed that way.

Finally, cross your fingers, and test it on target VM.

Neil V.


Posted on the users mailing list.