Tuesday, April 17, 2012

INFO: Stderr Read: Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct

When installing Oracle 11gR2 on Solaris, you may get this warning when run ./runInstaller and the installation may hang at 86% and never complete.
If you install Oracle via putty and Xming, then you should install Xming-font and configure the file fonts-dir in Xming installation dir.

Edit file C:\Program files\Xming\fonts-dir and add the lines:
C:\Program files\Xming\fonts\TTF
 C:\Program files\Xming\fonts\misc
C:\Program files\Xming\fonts\75dpi
Note: with Windows 64bit, to make sure it works well, when installing Xming please make sure that the installation directory is C:\Program files\Xming, not C:\Program files (x86)\Xming.
After installing Xming-font, run ./runInstaller again the warning may appear in your putty console but it's ok. The installation will pass 86% and run Oracle configuration assistant.

Wednesday, April 11, 2012

Installing Oracle on Centos 6 64 bits

Base file is 10201_database_linux_x86_64.cpio.gz

1 System preparation

Install a X server
yum groupinstall "X Window System"
Or, for a remote install on a server that doesn't need a graphical interface, install the following packages and dependencies to do X11 forwarding:
yum install xorg-x11-xauth.x86_64 xorg-x11-apps.x86_64
Change the timezone to GMT
# rm /etc/localtime
# ln -s /usr/share/zoneinfo/GMT /etc/localtime
Install some additional packages (yes, oracle installer requires GCC…. :/ )
# yum install libXp libXtst binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libstdc++ cpp make libaio ksh elfutils-libelf sysstat libaio libaio-devel setarch  libXp.i686 libXtst-1.0.99.2-3.el6.i686 glibc-devel.i686 libgcc-4.4.4-13.el6.i686 compat-libstdc++* compat-libf2c* compat-gcc* compat-libgcc* libXt.i686 libXtst.i686

Monday, April 9, 2012

Compiling PHP 5.3.10 / cannot find -lltdl

When compiling php from source, some CentOS 64 bit users have reported getting an error like this:
Code:
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
Now, this error can be triggered in a couple different places and if you do a general Google search you'll get all kinds of advice about installing this or that module. All great advice, but not your solution. Here's what you need to do:
  1. Verify that the libtool and libtool-ltdl packages are installed.
  2. Symlink libltdl.so to libltdl.so.x.x.x