From owner-freebsd-questions@FreeBSD.ORG Fri Mar 1 20:28:34 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8D82BD6 for ; Fri, 1 Mar 2013 20:28:34 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay004.isp.belgacom.be (mailrelay004.isp.belgacom.be [195.238.6.170]) by mx1.freebsd.org (Postfix) with ESMTP id 142B9163A for ; Fri, 1 Mar 2013 20:28:33 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgIFAA8OMVFtgUXb/2dsb2JhbABEg3i+RX4Xc4IfAQEEAScvIgEFCwsSBgkWDwkDAgECAScQDgYNAQUCAQEXh3IKAwXBFo1BgVwHg0ADjyiBJoI0hF+KOIUVgwk Received: from 219.69-129-109.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([109.129.69.219]) by relay.skynet.be with ESMTP; 01 Mar 2013 21:27:24 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.6/8.14.6) with ESMTP id r21KRNrT005755; Fri, 1 Mar 2013 21:27:23 +0100 (CET) (envelope-from tijl@coosemans.org) Message-ID: <51310F25.9070404@coosemans.org> Date: Fri, 01 Mar 2013 21:27:17 +0100 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130223 Thunderbird/17.0.3 MIME-Version: 1.0 To: Vijay Kaul Subject: Re: Installing Matlab References: <511E01BA.20307@coosemans.org> <511E6509.9090703@coosemans.org> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2KCNQDKBELUVLCXBRVDWS" Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 20:28:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2KCNQDKBELUVLCXBRVDWS Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 01-03-2013 21:07, Vijay Kaul wrote: > On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans w= rote: >> On 15-02-2013 10:36, Tijl Coosemans wrote: >>> On 14-02-2013 22:42, Vijay Kaul wrote: >>>> I was wondering if anyone has had any recent (or not-so-recent) >>>> experience installing Matlab on FreeBSD/PC-BSD? (Yes, I know about >>>> octave.) >>>> >>>> I'm not entirely new to *nix, but I'm novice enough that I can't se= em >>>> to get this to work. >>>> >>>> Perhaps the shortest and simplest solution would be if Mathworks ow= n >>>> installer would function, but that runs as a Java Web Start >>>> application, and I can't seem to get that working in Opera, Firefox,= >>>> or Konqueror. >>>> >>>> The automatic rout having failed, I've downloaded the files manuall= y, >>>> and I've tried to run the install script; however, it's failed as >>>> well. I found this site: >>>> , >>>> which claims installation instructions for PC-BSD8.2 boiling down to= : >>>> open up the shell scripts and take /bin/sh --> /compat/linux/bin/sh.= >>>> Well, that seems to help a bit, but it also fails because the instal= l >>>> script determines my architecture to be x68, while the downloads are= >>>> for (what they call) a64. (My system is indeed a 64-bit system. >>>> Perhaps the above instructions were for an x86 system.) >>>> >>>> I feel like if I could modify the install script sufficiently, the >>>> install would work. My bash scripting is weak, though, and I worry >>>> about screwing up my system and/or the installation. There are only = a >>>> few functions in there that are looking for architecture type, usual= ly >>>> with the output from uname. I think fixing those would work...? >>>> >>>> Could anyone help me get past this point? >>>> >>>> Thanks in advance! And please, if there's any info I can provide th= at >>>> would be helpful, please just let me know. >>>> >>>> Output of uname -a: >>>> FreeBSD pcbsd-8517 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 >>>> 03:45:16 UTC 2012 >>>> root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd= 64 >>>> >>>> The install script in question: >>> >>> Try creating this link: >>> >>> ln -s ../usr/bin/expr /compat/linux/bin/expr >>> >>> Without this link Linux scripts run the FreeBSD expr which isn't full= y >>> compatible. >> >> And also, the Linux compatibility layer is 32bit so you need the x86 >> version of Matlab. >> >=20 > Oh, I didn't realize that Linux on FBSD was 32 bit. Thanks for > pointing that out. BTW, mathworks has stopped releasing new 32-bit > versions of matlab for linux, but you can still get R2012a for 32-bit > linux. >=20 > Regarding the linking advice.... I have a /bin/expr and > /compat/linux/usr/bin/expr. My naivety is showing, but if I did >=20 > ~> ln -s /usr/bin/expr /compat/linux/usr/bin/expr That's not the same command as above. > don't I also need to edit my path so that the script would find my > link before finding the built-in FBSD command? Currently, my path > begins: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/l= ocal/bin: > .... So I think the script would still use '/bin/expr'. Under Linux compat the order becomes: 1: /compat/linux/sbin/expr 2: /sbin/expr 3: /compat/linux/bin/expr <- You need to create this as a link to 7= 4: /bin/expr <- FreeBSD expr 5: /compat/linux/usr/sbin/expr 6: /usr/sbin/expr 7: /compat/linux/usr/bin/expr <- Linux expr 8: /usr/bin/expr =2E.. > The install of the 32-bit linux matlab does still throw the error: >=20 > expr: illegal option -- r > expr: usage: expr [-e] expression >=20 > presumably because I need to use the linux version. (The install > script itself is essentially identical to the last.) It also is > throwing some Java exceptions, but maybe let's take this one error at > a time! ------enig2KCNQDKBELUVLCXBRVDWS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iF4EAREIAAYFAlExDysACgkQfoCS2CCgtiunEgD/aUdeLjhlnyDrF33VouXT6y5A XyZqTsKG+ev75qw0S9IA/jGj/vcVp7qo5Y20fvLh67LYSrdfIohzOk2m22vjF1PN =wHZb -----END PGP SIGNATURE----- ------enig2KCNQDKBELUVLCXBRVDWS--