Re: Installing Matlab

2013-03-02 Thread Tijl Coosemans
On 01-03-2013 23:55, Vijay Kaul wrote:
 On Fri, Mar 1, 2013 at 5:27 PM, Tijl Coosemans t...@coosemans.org wrote:
 On 01-03-2013 22:35, Vijay Kaul wrote:
 On Fri, Mar 1, 2013 at 3:27 PM, Tijl Coosemans t...@coosemans.org wrote:
 On 01-03-2013 21:07, Vijay Kaul wrote:
 On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org 
 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:
 http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
 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: http://pastebin.com/QkEH1vkF

 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

 That's not the same command as above.

 You're right. I didn't understand at first, but I think the command
 you suggested assumed that the working directory was
 /compat/linux/bin.


 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'.

 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
 ...

 I don't have #s 1, 2, 5, 6, or 8. I have created 3 as a link to 7.
 (And, of course, still have 4.)
 This does, indeed, clear up any errors from expr! Thanks!!

 snip

 The next issue is the java errors given. A brief linux install guide I
 was given instructed:

 ... (2) install Sun/Oracle java and plugin (32-bit) and you may
 actually need to use one or two versions back from the current version
 (depending on what's in the repositories anyway)

 I have, currently, installed the OpenJDK b27 PBI (recall I'm really
 on PC-BSD).

 Any tips or suggestions on where to find and how to install Oracle's
 Java? Why might I need an older version of Java? (Maybe they mean
 going back to JRE 6?) How would I know? (I ask about where to get
 Java, since Oracle claims only to support linux, and the handbook
 doesn't seem to have a section on it. I'm wondering if there's a right
 and wrong way to go here.)

 The Java exceptions I see are at http://pastebin.com/GJCnEXfR.

 I suspect the installer already contains java, so you don't have to
 install anything.
 
 Yes, the installer *does* in fact seem to contain a jre of its own, a
 point I had been confused about.
 
 The Linux version of java requires linprocfs though
 so make sure you have the following line in /etc/fstab

Re: Installing Matlab

2013-03-01 Thread Vijay Kaul
On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org 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:
 http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
 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: http://pastebin.com/QkEH1vkF

 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing Matlab

2013-03-01 Thread Tijl Coosemans
On 01-03-2013 21:07, Vijay Kaul wrote:
 On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org 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:
 http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
 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: http://pastebin.com/QkEH1vkF

 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

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/local/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
...


 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!



signature.asc
Description: OpenPGP digital signature


Re: Installing Matlab

2013-03-01 Thread Vijay Kaul
On Fri, Mar 1, 2013 at 3:27 PM, Tijl Coosemans t...@coosemans.org wrote:
 On 01-03-2013 21:07, Vijay Kaul wrote:
 On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org 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:
 http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
 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: http://pastebin.com/QkEH1vkF

 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

 That's not the same command as above.

You're right. I didn't understand at first, but I think the command
you suggested assumed that the working directory was
/compat/linux/bin.


 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'.

 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
 ...

I don't have #s 1, 2, 5, 6, or 8. I have created 3 as a link to 7.
(And, of course, still have 4.)
This does, indeed, clear up any errors from expr! Thanks!!

snip

The next issue is the java errors given. A brief linux install guide I
was given instructed:

... (2) install Sun/Oracle java and plugin (32-bit) and you may
actually need to use one or two versions back from the current version
(depending on what's in the repositories anyway)

I have, currently, installed the OpenJDK b27 PBI (recall I'm really
on PC-BSD).

Any tips or suggestions on where to find and how to install Oracle's
Java? Why might I need an older version of Java? (Maybe they mean
going back to JRE 6?) How would I know? (I ask about where to get
Java, since Oracle claims only to support linux, and the handbook
doesn't seem to have a section on it. I'm wondering if there's a right
and wrong way to go here.)

The Java exceptions I see are at http://pastebin.com/GJCnEXfR.

If I can get all this done, and get matlab working, I'd love to
contribute the write-up to the Handbook. It's matlab installation
information is, um, dated, though I hope the post-install information
has remained accurate.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing Matlab

2013-03-01 Thread Tijl Coosemans
On 01-03-2013 22:35, Vijay Kaul wrote:
 On Fri, Mar 1, 2013 at 3:27 PM, Tijl Coosemans t...@coosemans.org wrote:
 On 01-03-2013 21:07, Vijay Kaul wrote:
 On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org 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:
 http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
 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: http://pastebin.com/QkEH1vkF

 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

 That's not the same command as above.
 
 You're right. I didn't understand at first, but I think the command
 you suggested assumed that the working directory was
 /compat/linux/bin.
 

 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'.

 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
 ...
 
 I don't have #s 1, 2, 5, 6, or 8. I have created 3 as a link to 7.
 (And, of course, still have 4.)
 This does, indeed, clear up any errors from expr! Thanks!!
 
 snip
 
 The next issue is the java errors given. A brief linux install guide I
 was given instructed:
 
 ... (2) install Sun/Oracle java and plugin (32-bit) and you may
 actually need to use one or two versions back from the current version
 (depending on what's in the repositories anyway)
 
 I have, currently, installed the OpenJDK b27 PBI (recall I'm really
 on PC-BSD).
 
 Any tips or suggestions on where to find and how to install Oracle's
 Java? Why might I need an older version of Java? (Maybe they mean
 going back to JRE 6?) How would I know? (I ask about where to get
 Java, since Oracle claims only to support linux, and the handbook
 doesn't seem to have a section on it. I'm wondering if there's a right
 and wrong way to go here.)
 
 The Java exceptions I see are at http://pastebin.com/GJCnEXfR.

I suspect the installer already contains java, so you don't have to
install anything. The Linux version of java requires linprocfs though
so make sure you have the following line in /etc/fstab:

linprocfs   /compat/linux/proc  linprocfs   rw  0   0

Then mount linprocfs using: mount /compat/linux/proc

The Java exception is caused by a link error though. Can you send the
output of:

objdump -p /tmp

Re: Installing Matlab

2013-02-15 Thread Tijl Coosemans
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:
 http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
 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: http://pastebin.com/QkEH1vkF

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.



signature.asc
Description: OpenPGP digital signature


Re: Installing Matlab

2013-02-15 Thread Tijl Coosemans
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:
 http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
 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: http://pastebin.com/QkEH1vkF
 
 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.



signature.asc
Description: OpenPGP digital signature


Installing Matlab

2013-02-14 Thread Vijay Kaul
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:
http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html,
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: http://pastebin.com/QkEH1vkF

 Thanks again,
 --Vijay
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Installing MATLAB: processor is missing the SSE2 instructions

2009-07-12 Thread Daniel Underwood
Trying to install MATLAB (R2008b) according to the directions here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-matlab.html

Here's what happens when I try to install:

devil # /compat/linux/bin/sh /home/daniel/matlab-install/install
expr: illegal option -- r
usage: expr [-e] expression
/home/daniel/matlab-install/install: line 197: [: -ne: unary operator expected

Error: Your computer processor is missing the SSE2 instructions that
   are required for MATLAB to run correctly.
   For system requirements consult http://www.mathworks.com ...


Ignore, for now, the line 197 error.  The following is an excerpt from
the install script:

instructioncheck() { # check /proc/cpuinfo on glnx86 for
 # correct level of instructions
 # Output the flag location. A zero mean
 # no flag.
case $Arch in
glnx86)
# Example: Be sure that the platform has flag sse2
#  There are many ways to do this.
#  Output the flag location.
expr `cat /proc/cpuinfo` : '.* sse2 .*$'
return
;;
*)
;;
esac


This sse2 flag is not found in /compat/linux/proc/cpuinfo:

[dan...@devil ~]$ cat /compat/linux/proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 7
model name  : Intel(R) Core(TM)2 Duo CPU T7700  @ 2.40GHz
stepping: 10
processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model   : 7
model name  : Intel(R) Core(TM)2 Duo CPU T7700  @ 2.40GHz
stepping: 10
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 b19 b21 mmxext mmx fxsr xmm b26 b27 b28 b29 3dnow
cpu MHz : 2394.02
bogomips: 2394.02
[dan...@devil ~]$

Surely my cpu supports the needed instructions sets for MATLAB,
because I've installed and used this exact MATLAB distribution on this
machine when running Linux.

What exactly is going on here?  How do I fix this problem?

TIA,
Daniel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing MATLAB: processor is missing the SSE2 instructions

2009-07-12 Thread Daniel Underwood
Upon further investigation, I've learned that I can disregard the sse2 error.

I changed:

expr `cat /proc/cpuinfo` : '.* sse2 .*$'

to:

#expr `cat /proc/cpuinfo` : '.* sse2 .*$'
echo 1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Installing MATLAB: /lib/libXp.so.6: ELF file OS ABI invalid

2009-07-12 Thread Daniel Underwood
During installation of Matlab, just after accepting the licnse
agreement, I get this error:

/home/daniel/matlab-install/update/bin/glnx86/xsetup: error while
loading shared libraries: /lib/libXp.so.6: ELF file OS ABI invalid

I even tried # brandelf -t Linux /compat/linux/lib/libXp.so.6 but I
still get the same error.

How do I fix this?

TIA,
Daniel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing MATLAB: /lib/libXp.so.6: ELF file OS ABI invalid

2009-07-12 Thread Mel Flynn
On Sunday 12 July 2009 11:34:52 Daniel Underwood wrote:
 During installation of Matlab, just after accepting the licnse
 agreement, I get this error:

 /home/daniel/matlab-install/update/bin/glnx86/xsetup: error while
 loading shared libraries: /lib/libXp.so.6: ELF file OS ABI invalid

 I even tried # brandelf -t Linux /compat/linux/lib/libXp.so.6 but I
 still get the same error.

 How do I fix this?

What's the output of:
sysctl compat.linux.osrelease
ls /var/db/pkg|grep linux_base
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing MATLAB: /lib/libXp.so.6: ELF file OS ABI invalid

2009-07-12 Thread Daniel Underwood
$ sysctl compat.linux.osrelease
compat.linux.osrelease: 2.4.2

$ ls /var/db/pkg|grep linux_base
linux_base-fc-4_14
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing MATLAB: /lib/libXp.so.6: ELF file OS ABI invalid

2009-07-12 Thread Daniel Underwood
FYI:

I believe initially libXp.so.6 was not located in /compat/linux/lib/,
so I copied it there from /usr/local/lib/.  I believe I also tried to
brand the file, but before branding the file and after branding the
file I get this same error message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing MATLAB: /lib/libXp.so.6: ELF file OS ABI invalid

2009-07-12 Thread Gregory T Helton
On Sun, 12 Jul 2009 19:26:59 -0400
Daniel Underwood djuatde...@gmail.com wrote:

 FYI:
 
 I believe initially libXp.so.6 was not located in /compat/linux/lib/,
 so I copied it there from /usr/local/lib/.  I believe I also tried to
 brand the file, but before branding the file and after branding the
 file I get this same error message.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

I believe you need the libXp.so.6 from linux. (fc4 rpm?)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing MATLAB: /lib/libXp.so.6: ELF file OS ABI invalid

2009-07-12 Thread Mel Flynn
On Sunday 12 July 2009 11:34:52 Daniel Underwood wrote:
 During installation of Matlab, just after accepting the licnse
 agreement, I get this error:

 /home/daniel/matlab-install/update/bin/glnx86/xsetup: error while
 loading shared libraries: /lib/libXp.so.6: ELF file OS ABI invalid

 I even tried # brandelf -t Linux /compat/linux/lib/libXp.so.6 but I
 still get the same error.

 How do I fix this?

On Sunday 12 July 2009 15:26:59 Daniel Underwood wrote:
 FYI:

 I believe initially libXp.so.6 was not located in /compat/linux/lib/,
 so I copied it there from /usr/local/lib/.  I believe I also tried to
 brand the file, but before branding the file and after branding the
 file I get this same error message.

That explains a lot. Remove that file and install /usr/ports/x11/linux-xorg-
libs. The correct libXp.so.6 should then be installed.

The article could use a pre-requisite section though. It's not obvious to 
everyone that the linux emulation uses it's own Xorg.

-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing MATLAB: /lib/libXp.so.6: ELF file OS ABI invalid

2009-07-12 Thread Daniel Underwood
Thanks Mel, you're a genius!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Installing Matlab R13 useing Linux compatibility

2003-09-08 Thread Robert Stickney
I have the student version installed and I am running FreeBSD 5.0 with linux
binary compatibility.  I brandelf'ed the Matlab executable and I still get
this error when I run Matlab.

Matlab: error while loading shared libraries: libut.so: cannot open shared
object file: No such file or directory 

I am not sure that I have the linux binary compatibility installed correctly
because when my computer boots i get many error that look like this:

/compat/linux/sbin/ldconfig: /usr/X11R6/lib/libX11.so.6 is not a symbolic link

Thanks for you help,

Robert Stickney

--
Open WebMail Project (http://openwebmail.org)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing Matlab R13 useing Linux compatibility

2003-09-08 Thread Dan Pelleg
Robert Stickney [EMAIL PROTECTED] writes:

 I have the student version installed and I am running FreeBSD 5.0 with linux
 binary compatibility.  I brandelf'ed the Matlab executable and I still get
 this error when I run Matlab.
 
 Matlab: error while loading shared libraries: libut.so: cannot open shared
 object file: No such file or directory 
 
 I am not sure that I have the linux binary compatibility installed correctly
 because when my computer boots i get many error that look like this:
 
 /compat/linux/sbin/ldconfig: /usr/X11R6/lib/libX11.so.6 is not a symbolic link
 
 Thanks for you help,
 
 Robert Stickney
 

I don't use linux compat on 5.X, but it looks like your installation is
broken. See if you can find any tips in the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html

Note it includes a Matlab section, which is known to work on 4.X.

-- 

  Dan Pelleg
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]