jump to navigation

Install DBD::mysql for Solaris 10 system perl August 13, 2009

Posted by claudio in Perl, Solaris, UNIX.
Tags: , , , , ,
add a comment

perlInstalling DBD::mysql on Solaris 10 seems to be less trivial than “cpan DBD::mysql” when you want to use the system-supplied perl (5.8.4) and mysql (4.0.31) installation. Google shows a lot of people asking how to proceed, but surprisingly no answers. Typically, one gets this error at make time:

[...]
"dbdimp.c", line 4468: improper member use: com
"dbdimp.c", line 4468: improper member use: com
"dbdimp.c", line 4468: improper member use: com
"dbdimp.c", line 4630: undefined struct/union member: pmysql
"dbdimp.c", line 4653: undefined struct/union member: pmysql
cc: acomp failed for dbdimp.c
make: *** [dbdimp.o] Error 1

To install the module do this:

  1. Install the following Solaris mysql packages (if not already installed): SUNWmysqlr, SUNWmysqlu, SUNWmysqlS, SUNWmysqlt.
  2. Type the following as root:
    cd /usr/sfw/share/src/mysql
    ./configure
  3. Download the tar ball of the modules or, easier, go to your cpan build directory (set at cpan configure time), typically at ~/.cpan/build/DBD-mysql-<VERSION> (already there if you previously tried to install the module with cpan).
  4. Run the makefile with the following arguments (adapt to your own needs if necessary):
    cd ~/.cpan/build/DBD-mysql-<VERSION>
    perl Makefile.PL --libs '-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm' --cflags '-I/usr/sfw/include -I/usr/include -I/usr/sfw/share/src/mysql/include'Installing /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBD/mysql/mysql
  5. Complete the normal installation (make, make test (if you have a test db running), make install).

That’s it.

JavaFX compiler for Linux very soon? May 11, 2009

Posted by claudio in Desktop, GNU/Linux, Java, Programming, Solaris.
Tags: , , ,
1 comment so far

javafxGood news. It seems that Linux and Solaris are getting the JavaFX development kit. Finally. In the fight against Silverlight and AIR every developer counts. Still some questions remain open:

  • Will SUN open JavaFX completely now (don’t make the JDK error twice!)?
  • When will -at least- Netbeans get a JavaFX graphical editor in the same level as the Netbeans’ Matisse Swing editor?
  • And last but not least, what will Oracle do with JavaFX when it owns SUN?

Anyway, if the apparently well-informed rumour is true, it is indeed good news.

Blastwave is dead, long live OpenCSW and … Blastwave! November 18, 2008

Posted by claudio in General UNIX, Solaris.
Tags: , , , , , ,
3 comments

damnLet’s face it. GNU/Linux is miles ahead of Solaris when talking about an integrated package management. The combo dpkg/apt-get on Debian and derivatives and even rpms are killer features for many sys-admins and users. The huge well-maintained software repositories are amazing.

Solaris pkg-system (SVR4 packages) and patch-system (individual patches and patchclusters) feel like ancient history. On a fun day I’ll end up writing a perl wrapper for pkgadd and co. (pkgrm, pkginfo, patchadd, patchrm…) to accept parameters in latin…

If you don’t feel like compiling from source dozens (hundreds?) applications and libraries you can always count on kind-of-sponsored-by-SUN sunfreeware. However, dependencies are handled by looking in a web page which dependencies the package has. And which dependencies the dependencies have on an other page, and… You get the picture.

Blastwave to the rescue? The last months have been sad for the Solaris community.

(more…)

Reset the Solaris root password June 13, 2008

Posted by claudio in Solaris.
Tags: , ,
add a comment

Forgetting the root password (or being replaced without you knowing it). Pretty silly when it happens, but it does happen. Follow this steps if you need to reset the root password of a Solaris system. (more…)

Mount an iso file on Solaris and present it to a zone June 11, 2008

Posted by claudio in Solaris.
Tags: , , , , ,
2 comments

When installing software on servers, it is not practical to go the the serverroom (if possible at all), just to insert a cdrom in the machine. Just create an iso with your favorite cd burning software (brasero?), and follow these steps. (more…)

Use external functions/modules in korn shell (ksh) August 7, 2007

Posted by claudio in GNU/Linux, General UNIX, Shell, Solaris.
Tags: , , , , , ,
1 comment so far

The korn shell is a great shell to write shell scripts. Some functionalities are really nice. By example, you can write your functions or modules in a separate file and use it within your program. The secret lies in the FPATH environment variable. (more…)

Non hexadecimal ifconfig (Solaris 8, 9 & 10) August 6, 2007

Posted by claudio in Perl, Solaris.
Tags: , ,
1 comment so far

Solaris is nice, but its ifconfig is pretty annoying. It gives you an hexadecimal netmask.This gives you two choices. One learn to decipher all those f’s or write a ridiculous small wrapper script. Guess what I did. (more…)