opensolaris

Building a jar with MySQL jdbc on solaris

Hi All, Im building a java application that uses JDBC to connect to MySQL. I have an ant script that compiles my code and then packages it, along with log4j, junit, libshout-java and the mysql jdbc driver into one executable jar. This all works fine on ubuntu 9.10, and my code connects to mysql and away we go. However my production env...

Make doesn't work for Erlang 5.7.4 on Solaris?

Has anyone managed to build Erlang on OpenSolaris? Every time I try I get: user@opensolaris:~/otp_src_R13B03# make clean make: Fatal error in reader: Makefile, line 94: Badly formed macro assignment ...

makefile from Linux doesn't work in OpenSolaris

In OpenSolaris OS, when I run makefile generated by Eclipse CDT on the Linux OS, I get an error on the first -include line. The same error was in FreeBSD, and was solved by executing gmake instead of make. In OpenSolaris (just installed) gmake doesn't work (command not found). What package should I install and how exactly, to build L...

On Solaris, how do you mount a second zfs system disk for diagnostics?

I've got two hard disks in my computer, and have installed Solaris 10u8 on the first and Opensolaris 2010.3 (dev onnv_134) on the second. Both systems uses ZFS and were independently created with a zpool name of 'rpool'. While running Solaris 10u8 on the first disk, how do I mount the second ZFS hard disk (at /dev/dsk/c1d1s0) on an arb...

Are there dtrace ustack() helpers on Mac OS X?

Hi, I've been wondering if there is any chance to use dtrace ustack helpers on Mac OS X for python and other interpreted languages? I know that you can figure out what python and php on OpenSolaris are doing when giving the ustack some extra memory for a buffer. Is this somehow possible on Mac OS X? Regards raichoo ...

Method of programmatically getting CPU time for thread, in C, that works on both OpenSolaris and Linux

I have a small daemon that I'm writing in C and I need a way to get the current CPU time on a thread. Linux apparently supplies a number of ways to go about doing this, clock_gettime(CLOCK_THREAD_CPUTIME_ID, ...), pthread_getcpuclockid(), getrusage(RUSAGE_THREAD, ...) but none of these seem to be supported under OpenSolaris 2009.06. Is ...

GFortran real format error on OpenSolaris 2009.06

Hi, I get on trouble using gfortran on OpenSolaris 2009.06 64bit. I compile mine (gcc-4.4.1) or use the one provided by OpenSolaris package system (gcc-4.3.2). But I'm in trouble using this simple code (extract from the more complexe one I targeted) : PROGRAM TESTPRGM REAL test; test=-1.14739E+002; writ...

Raidz-1 parity disks?

Duplicate on Server Fault: Raidz-1 parity disks? I am a bit confused about how to configure my zfs pool. What is the exact difference between adding 8 disks to a raidz1 pool or adding 2x4 to the pool with 2 raidz1 groups. Example zpool create testPool raidz1 d1 d2 d3 d4 raidz1 d5 d6 d7 d8 zpool status shows the same amount o...

expect command - Unix

Hi, I am using 'expect' to automate ssh password authentication. When I run the script in SunOS, I find the spawned ssh process gets killed once the below script is completed. This is not the case in Linux. How do we avoid it? Should we ignore the SIGCHLD signal somehow? Is there anyway to determine through this script if spawned proces...

ESXi / OpenSolaris / ZFS / Linux

I've been using my Opensolaris BOX for while, with 6 internals drives under ZFS. More recently I've been playing with ESXi and i've got to say this platform is amazing; therefor my plan is to buy a nice SSD drive, install ESXi, create a VM with OpenSolaris and add my 6 disks into the vm and do a zpool import and all my data will be there...

Installing jdk1.6 on opensolaris

Hi, I installed opensolaris I saw that it has /usr/jdk/jdk1.6 however it had no bin/javac only java my default java -version is jdk1.6 just after opensolaris installation however as I have no javac I downloaded jdk1.6 for solaris and after executing the jdk1.6xx.sh i did cd to the folder of jdk and then inside bin directory I ran javac ...