From owner-freebsd-doc@FreeBSD.ORG Tue Apr 18 17:30:40 2006 Return-Path: X-Original-To: doc@freebsd.org Delivered-To: freebsd-doc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF57B16A402 for ; Tue, 18 Apr 2006 17:30:40 +0000 (UTC) (envelope-from philippe@alpha.ece.jhu.edu) Received: from ipex1.johnshopkins.edu (ipex1.johnshopkins.edu [162.129.8.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 735C843D49 for ; Tue, 18 Apr 2006 17:30:39 +0000 (GMT) (envelope-from philippe@alpha.ece.jhu.edu) Received: from jhuml3.jhu.edu ([128.220.2.66]) by ipex1.johnshopkins.edu with ESMTP/TLS/DES-CBC3-SHA; 18 Apr 2006 13:30:22 -0400 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.04,131,1144036800"; d="scan'208"; a="14891026:sNHT1430292532" Received: from alpha.ece.jhu.edu (alpha.ece.jhu.edu [128.220.251.86]) by jhuml3.jhu.edu (PMDF V6.2-X27 #31041) with ESMTPS id <0IXX0055QHYLF5@jhuml3.jhu.edu> for doc@FreeBSD.org; Tue, 18 Apr 2006 13:30:21 -0400 (EDT) Received: from alpha.ece.jhu.edu (localhost.ece.jhu.edu [127.0.0.1]) by alpha.ece.jhu.edu (8.13.6/8.13.6) with ESMTP id k3IHWAeC011224 for ; Tue, 18 Apr 2006 13:32:10 -0400 Received: from localhost (philippe@localhost) by alpha.ece.jhu.edu (8.13.6/8.13.6/Submit) with ESMTP id k3IHWACv011221 for ; Tue, 18 Apr 2006 13:32:10 -0400 Date: Tue, 18 Apr 2006 13:32:10 -0400 (EDT) From: Philippe Pouliquen To: doc@FreeBSD.org Message-id: <20060418110404.V5712@alpha.ece.jhu.edu> MIME-version: 1.0 Content-type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: Subject: Handbook update, section 10.5... X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 17:30:40 -0000 Hi All, There doesn't seem to be a way of contacting Dan Pelleg (author of section 10.5 of the FreeBSD handbook) directly, so here is my input on installing Matlab under FreeBSD: The errors of the form: [: -ne: unary operator expected which occur when starting Matlab or the FlexLM license manager can be resolved by setting the environment variable EXPR_COMPAT in the Matlab startup script (the one that goes in /usr/local/bin) and in the FlexLM startup script (the one that goes in /usr/local/etc/rc.d). I think this is preferable to the fix recommended by Dan Pelleg in section 10.5.4, which requires hand editing of all incompatible uses of the test ([) command in all the shell scripts in the Matlab installation directory. I have used the following lines for this: EXPR_COMPAT=true export EXPR_COMPAT Philippe Pouliquen The Johns Hopkins University