Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2013 00:37:17 +0100 (CET)
From:      Jimmy Olgeni <olgeni@olgeni.com>
To:        "Joseph A. Nagy, Jr" <jnagyjr1978@gmail.com>
Cc:        "Questions @ FreeBSD" <questions@freebsd.org>
Subject:   Re: [OT-ish] Need a Binary for lang/sml-nj
Message-ID:  <alpine.BSF.2.00.1301280026430.95769@olgeni.olgeni>
In-Reply-To: <5105AF68.3090707@gmail.com>
References:  <51041F2E.6090008@gmail.com> <alpine.BSF.2.00.1301262019430.4292@olgeni.olgeni> <51044400.8030602@gmail.com> <alpine.BSF.2.00.1301262251550.8260@olgeni.olgeni> <51049785.2050101@gmail.com> <alpine.BSF.2.00.1301271217560.86387@olgeni.olgeni> <5105ACF3.7000105@gmail.com> <alpine.BSF.2.00.1301272342030.58452@olgeni.olgeni> <5105AF68.3090707@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 27 Jan 2013, Joseph A. Nagy, Jr wrote:

> Possibly, I have the space (~18GB free on my /home partition, even more free 
> on /). It's just a matter of me taking the time to work on setting either one 
> up and I seem to be a perpetual "corner case" when it comes to software 
> issues. Either way I have the package locally now (in distfiles, I assume) so 
> it's just a matter of doing what's needed to get it working.

You may try this ugly emergency fix and see if SML starts at least in 
a temporary jail.

In your home, or wherever you have some space available... (400MB should be fine)

Fetch some i386 binaries for 9.1 (or your favorite release)

   mkdir 9.1-i386

   fetch -o - ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.1-RELEASE/base.txz | tar -x -f - -C 9.1-i386

Copy the resolver configuration:

   cp /etc/resolv.conf 9.1-i386/etc

Ensure that /usr/local is populated, just in case:

   mtree -deU -f /usr/ports/Templates/BSD.local.dist -p 9.1-i386/usr/local

Add this to your /etc/jail.conf (replace my home directory with your own path)

   sml {
     name=sml;
     host.hostname=sml;
     ip4=inherit;
     persist;
     path=/home/olgeni/9.1-i386;
   }

Create a jail for sml:

   jail -c sml

Enter the jail:

   jexec sml sh

Install SML from tbz package:

   pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/lang/smlnj-110.0.7_3.tbz

Run SML and hopefully get a prompt:

   sml

Standard ML of New Jersey, Version 110.0.7, September 28, 2000 [CM; autoload enabled]
-

I got one, so it seems to work :)

If SML starts this way then there is hope and you just need to clean 
up the configuration a bit.

-- 
jimmy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1301280026430.95769>