From owner-freebsd-questions@FreeBSD.ORG Mon Jan 4 15:59:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 535AB1065676 for ; Mon, 4 Jan 2010 15:59:15 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay006.isp.belgacom.be (mailrelay006.isp.belgacom.be [195.238.6.172]) by mx1.freebsd.org (Postfix) with ESMTP id E3FC68FC1D for ; Mon, 4 Jan 2010 15:59:14 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEABKfQUtQyADw/2dsb2JhbACBRIIaw2+MW4Esgi5WBIVq Received: from 240.0-200-80.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([80.200.0.240]) by relay.skynet.be with ESMTP; 04 Jan 2010 16:59:13 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.3/8.14.3) with ESMTP id o04FxC5p004864; Mon, 4 Jan 2010 16:59:12 +0100 (CET) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: gianrico.lamura@lamia.infm.it, freebsd-questions@freebsd.org Date: Mon, 4 Jan 2010 16:59:11 +0100 User-Agent: KMail/1.9.10 References: <4a761d7c2b4e12eca7c077b017f8ca7a@localhost> <201001041512.37561.tijl@coosemans.org> <616f44266dacb181b4a9553fc75bace4@localhost> In-Reply-To: <616f44266dacb181b4a9553fc75bace4@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201001041659.12177.tijl@coosemans.org> Cc: Subject: Re: MATLAB in FreeBSD 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: Mon, 04 Jan 2010 15:59:15 -0000 On Monday 04 January 2010 15:28:03 gianrico.lamura@lamia.infm.it wrote: > On Mon, 4 Jan 2010 15:12:35 +0100, Tijl Coosemans > wrote: >> On Monday 04 January 2010 13:27:06 gianrico.lamura@lamia.infm.it >> wrote: >>> to install MATLAB i have followed striclty what FreeBSD doc >>> suggests (even if this doc is not updateed and contains erros) @ >>> http://www.freebsd.org/doc/en/books/handbook/linuxemu-matlab.html. >>> >>> To avoid the "SSE2" problem I followed: >>> >>> http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/202248.h >>> >>> to run succesfully the installation. But, at the end of the >>> installation, when I have to activate the licence, the systems >>> diplay an error that is explained in the /tem/aws.log file as : >>> >>> "(Jan 04, 2010 12:58:48)There was an unexpected exception. See the >>> log file (/tmp/aws.log) for more details. >>> (Jan 04, 2010 12:58:56)java.lang.UnsatisfiedLinkError: >>> /usr/compat/linux/usr/local/matlab/bin/glnx86/libinstutil.so: >>> libstdc++.so.6: cannot handle TLS data " (**) >>> >>> and the system stops!! >>> >>> I tried to run anyway the matlab script but an erro occurred for >>> the sam reason of SSE2 check. Thus I corrected it by following : >>> >>> http://www.mail-archive.com/freebsd-questions%40freebsd.org/msg214774.html >>> >>> the program starts with the licence request but the same problem as >>> in (**) still diplays. >>> >>> I have searched for several days in the net for a solution but I >>> found nothing. I'm desperate because I need matlab. I have the >>> licence. I run it before on the same laptop. I changed to FreeBsd >>> since Ubuntu was too bad for my Philips Freevents X59. But now I do >>> not know how to solve this problem. >>> >>> Please, could you help me before I will forced to change another >>> time the operating system? >> >> What version of FreeBSD and Matlab do you use? > > for FreeBSD: 7.2 and Kde 3.5 (all integrated in FreeDesktopSD) > > matlab 2008a In that case I suspect you have to enable the newer linux compat layer. The default in FreeBSD 7.2 doesn't support TLS (the (**) error above). To do this, do the following: * Remove Matlab and all linux* ports you have installed. pkg_delete linux\* * Add this line to /etc/sysctl.conf: compat.linux.osrelease=2.6.16 * Matlab probably also needs linprocfs mounted, so add this line to /etc/fstab if it isn't there yet: linprocfs /compat/linux/proc linprocfs rw 0 0 * Reboot. * Add these two lines to /etc/make.conf: OVERRIDE_LINUX_BASE_PORT=f10 OVERRIDE_LINUX_NONBASE_PORTS=f10 * Install emulators/linux_base-f10. * Install f10 versions of the linux* ports if you need them, e.g. instead of graphics/linux-png install graphics/linux-f10-png if you need it. * Install Matlab. You'll still have the SSE2 error, but the TLS error should be gone.