From owner-freebsd-questions@FreeBSD.ORG Thu Apr 19 16:41:44 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED8B616A401 for ; Thu, 19 Apr 2007 16:41:44 +0000 (UTC) (envelope-from henry.lenzi@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id AE1F313C480 for ; Thu, 19 Apr 2007 16:41:44 +0000 (UTC) (envelope-from henry.lenzi@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so516935pyh for ; Thu, 19 Apr 2007 09:41:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hgMTRZdvs4qxAjGkaTJ+7Sg5roJ3+ci5xxUfjtHBuXAfWDsakf+h196uBJaUMEtgw4wAbcFte9dZyr3uj0ovT1NVj5BoYkXmghY7GNsTa7yya7FSkKBcZDNdXnPXDcWkPWljn1kfww8xbh3LaufSPG2EUvJAhIterXYOhO6650U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CTd6JrDKhVxZ3sihVfjaezM9N5SHOoPnc1HQlYDSYC3V6aCRnaZAxM/Yw7wp1JT7EUP3ln8R6AeJJ6MaI+TP6i4+W/UA9vKEf3BX+w3jptlOhGmysT6OGj6d4Mw+BYaf1T5nXnvXIf3q1n59kTLIL16zJqdYje7RqoMEdSDKA+g= Received: by 10.65.113.17 with SMTP id q17mr3995329qbm.1176999328157; Thu, 19 Apr 2007 09:15:28 -0700 (PDT) Received: by 10.64.204.7 with HTTP; Thu, 19 Apr 2007 09:15:28 -0700 (PDT) Message-ID: <8b4c81f0704190915i3037133cne52c1986ee851049@mail.gmail.com> Date: Thu, 19 Apr 2007 13:15:28 -0300 From: "Henry Lenzi" To: FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Help with running Linux software LD_LIBRARY_PATH X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2007 16:41:45 -0000 Dear folks -- I'm trying to install a software package called LINGO for my operations research class. There's a Linux version (no BSD, though). http://www.lindo.com/downloads/downloadm.html I'm hoping I can get this to work with the Linux emulation layer (other stuff work already, like Maple 8). I am getting errors related to a shell script a LD_LIBRARY_PATH There are libraries that need to be loaded in /opt/lingo9 > ls LINGO.CNF libcxa.so liblindo.so libmosek.so.3.2 lingovars.sh libcxa.so.3 liblindo.so.3.0 libunwind.so.5 libconsub3.so libcxa.so.5 libmosek.so lingo9 I unpacked it under /opt. There's a bash shell script you're supposed to run: ############################## #! /bin/sh LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/lingo9/bin/linux32 export LD_LIBRARY_PATH LINGO_LICENSE_FILE="$HOME/opt/lingo9/license/lndlng90.lic" export LINGO_LICENSE_FILE ############################### My first question is if the shell script "translation" to tcsh is correct: ############################### #!/bin/tcsh setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/opt/lingo9/bin/linux32 setenv LINGO_LICENSE_FILE "/opt/ling9/license/lndlng90.lic" ############################### When I try to execute it, I get the error below (BTW, set to 755). > ls -l bsdlingolic.sh -rwxr-xr-x 1 root 2527 143 19 Abr 13:00 bsdlingolic.sh > ./bsdlingolic.sh LD_LIBRARY_PATH: Undefined variable. > What suggestions do you have regarding this issue? Thanks in advance. Henry