From owner-freebsd-questions@FreeBSD.ORG Fri Mar 1 20:07:15 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 275E3785 for ; Fri, 1 Mar 2013 20:07:15 +0000 (UTC) (envelope-from vijaykaul@gmail.com) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id B975714E8 for ; Fri, 1 Mar 2013 20:07:14 +0000 (UTC) Received: by mail-ee0-f49.google.com with SMTP id d41so2615853eek.8 for ; Fri, 01 Mar 2013 12:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=uom+MBxTEjGfoEsH7jU4PIGUdQe9DbEU5jqOI/DwWR8=; b=lmxsr94VCGvsy8L1z/GK+ZFxIuWoAul7evnNtSdP/jecuNOwXFcuD9Qq8HPELOvsmR JaNqbjl1mAHicLRuSgKsOWEurnyZZlVrYnMHl3OAWkKmSK3JXDbYwhJlyioAG+Y+SH4V 0dyDfgyq1StUKPYHjbL1DS0vEylVDMLYr3GGxGUeSK+3RvcfipXi5PrI+CeQQhXxFOS6 /9DWQJKNVXuqck5IW8jZD73cupJW6piEs7Y8/iE+e+4uGrquU9DhYOsAwGOJ5eCzcvTI 3vFf+9xTUMUS8oZhpDGRpO4fmThmTDJ63haD5j7NMEl1r0Q7MJZkhX3Skf+x1Tayrccr I9Gg== MIME-Version: 1.0 X-Received: by 10.14.175.129 with SMTP id z1mr31471992eel.7.1362168427879; Fri, 01 Mar 2013 12:07:07 -0800 (PST) Received: by 10.14.142.206 with HTTP; Fri, 1 Mar 2013 12:07:07 -0800 (PST) In-Reply-To: <511E6509.9090703@coosemans.org> References: <511E01BA.20307@coosemans.org> <511E6509.9090703@coosemans.org> Date: Fri, 1 Mar 2013 15:07:07 -0500 Message-ID: Subject: Re: Installing Matlab From: Vijay Kaul To: Tijl Coosemans Content-Type: text/plain; charset=ISO-8859-1 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:07:15 -0000 On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans wrote: > 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 seem >>> to get this to work. >>> >>> Perhaps the shortest and simplest solution would be if Mathworks own >>> 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 manually, >>> 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 install >>> 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, usually >>> 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 that >>> 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 amd64 >>> >>> 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 fully >> compatible. > > And also, the Linux compatibility layer is 32bit so you need the x86 > version of Matlab. > 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. Regarding the linking advice.... I have a /bin/expr and /compat/linux/usr/bin/expr. My naivety is showing, but if I did ~> ln -s /usr/bin/expr /compat/linux/usr/bin/expr 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/local/bin: .... So I think the script would still use '/bin/expr'. The install of the 32-bit linux matlab does still throw the error: expr: illegal option -- r expr: usage: expr [-e] expression 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! Thanks for the tips and help so far! --Vijay