SIDEBAR
»
S
I
D
E
B
A
R
«
Oracle Solaris Studio 12.2 on Solaris 11
Dec 10th, 2011 by suse

Related Web Portal:
Oracle Solaris Studio
Although not officially certified on Solaris 11 Release platform, we can definitely use the Solaris Studio as a tarball.

I don’t apply extra patches, only using following packages mentioned here….
Installing Oracle Solaris Studio 12.2 (tarfile) on Solaris 11 Express

the launch is all ok, I wrote a small script to invoke the binary, as I dont actually like to add those binaries to $PATH,
for I have GNU compiler sets in the $PATH…

suse@sol64tk:~$ cat /usr/bin/ss
#!/usr/bin/bash

/_MY_PATH_TO_SOLSTD/solstudio12.2/bin/solstudio  --jdkhome=/usr/java/

Some small issues which related to Netbeans (v 6.9)
1. editor on GUI doesnt have good font settings,  all saw-toothed by default.
2. add Java to the netbeans cannot be detected by default, for JAVA_HOME not known.

Fix… to change netbeans conf. and restart the IDE.

# vi /_MY_PATH_TO_SOLSTD/netbeans/etc/netbeans.conf

#add following option to the end of the default netbeans invoke options line.
netbeans_default_options="...  -J-Dawt.useSystemAAFontSettings=on" 

# Default location of JDK, can be overridden by using --jdkhome <dir>:
#If following parameter set, solstudio can detect without --jdkhome showed.
netbeans_jdkhome="/usr/java"

VirtualBox doesnt work with kernel-2.6.41.fc15
Dec 8th, 2011 by suse

My Env:

~> rpm -qa| grep -i virtual
VirtualBox-4.1-4.1.2_73507_fedora15-1.x86_64
~> rpm -qa| grep -i kernel
kernel-2.6.41.1-1.fc15.x86_64
kernel-headers-2.6.41.1-1.fc15.x86_64
kernel-devel-2.6.41.1-1.fc15.x86_64

launching VirtualBox failed since it needs to re-compile driver:

roo@suse> /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                         [确定]
Uninstalling old VirtualBox DKMS kernel modules            [确定]
Removing old VirtualBox netadp kernel module               [确定]
Removing old VirtualBox netflt kernel module               [确定]
Removing old VirtualBox kernel module                      [确定]
Trying to register the VirtualBox kernel modules using DKMSError!
Bad return status for module build on kernel: 2.6.41.1-1.fc15.x86_64 (x86_64)
Consult /var/lib/dkms/vboxhost/4.1.2/build/make.log for more information.
                                                           [失败]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                      [失败]
  (Look at /var/log/vbox-install.log to find out what went wrong)

check the logs and see the err:

/var/lib/dkms/vboxhost/4.1.2/build/vboxpci/linux/VBoxPci-linux.c:39:28:
致命错误:asm/amd_iommu.h:没有那个文件或目录
编译中断。
make[2]: *** [/var/lib/dkms/vboxhost/4.1.2/build/vboxpci/linux/VBoxPci-linux.o] 错误 1
make[1]: *** [/var/lib/dkms/vboxhost/4.1.2/build/vboxpci] 错误 2
make: *** [_module_/var/lib/dkms/vboxhost/4.1.2/build] 错误 2
make: 离开目录“/usr/src/kernels/2.6.41.1-1.fc15.x86_64”

Double check that Fedora Kernel 2.6.41 not provides this header again.
not like in 2.6.40(also called 3.1 and 3.0 in mainline kernel.)

kernel-devel-2.6.40.4-5.fc15.x86_64 :
Development package for building kernel modules to match the kernel
Repo        : installed
匹配来自于  :  Filename    :
/usr/src/kernels/2.6.40.4-5.fc15.x86_64/arch/x86/include/asm/amd_iommu.h

kernel-devel-2.6.40.6-0.fc15.x86_64 :
Development package for building kernel modules to match the kernel
Repo        : installed
匹配来自于  : Filename    :
/usr/src/kernels/2.6.40.6-0.fc15.x86_64/arch/x86/include/asm/amd_iommu.h

Still working on a workaround….
an obvious w/r is to rollback to 2.6.40 kernel.

Thu Dec 8 23:19:43 CST 2011
seems it’s a reported issue…
upgrade to 4.1.6 and change scripts:

VirtualBox-4.1-4.1.6_74713_fedora15-1.x86_64

w/r

/var/lib/dkms/vboxhost/4.1.6/source/vboxpci/linux/VBoxPci-linux.c
38c38
< #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
---
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 41)

Following links may also help:
Default Fedora 15 kernel 2.6.41.1-1: asm/amd_iommu.h missing; bad kernel upgrade!
VirtualBox 4.1.6 on Fedora 15 with Kernel 2.6.41.1: module compilation error

Recover from root partition lost
Dec 8th, 2011 by suse

I ran into troubles on my Dell box, which hosting Fedora(2.6.41.1-1.fc15.i686 ) and WinXP Dual OS.

My OS partition table looks like the following(After recovery)

[root@suse suse]# uname -a
Linux suse.rac 2.6.41.1-1.fc15.i686 #1 SMP Fri Nov 11 21:50:36 UTC 2011 i686 i686 i386 GNU/Linux
[root@suse suse]# df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                144G   15G  128G  11% /
...
...
/dev/sda8              97G   55G   38G  60% /usr/suse
...
/dev/sda3              21G  7.1G   14G  35% /media/win2
/dev/sda1              24G   18G  5.7G  76% /media/win1
/dev/sda5             291M  173M  104M  63% /boot
/dev/sda6             145G  121G   17G  88% /home/suse
/dev/sda7             144G   15G  128G  11% /tmp
/dev/sda7             144G   15G  128G  11% /var/tmp
/dev/sda7             144G   15G  128G  11% /home

 

Actually I dont especially partition for /home or /tmp,  it’s directed to the root partition.
***I think it a not smart design in Fedora using /etc/mtab
***Which may cause duplicated mount.
***If you dont like it ,just change mtab solution.

[Please Dont Copy following Steps, danger! ]

1. umount /dev/sda7
It’s good that /home umounted.

2. re-run the cmd1 , umount several times. with option ‘-l’, which may dismount root partition.

3. os in bad state although running applications keep working, but “/dev/sda“ is no visible now.

4. fdisk or df not work.

5. reboot and try above codes…and finally…. system down.

[Time to Rescue]

1. reboot nodes doesn’t work, grub seems ok .
/boot is not affected, but cannot boot, incidentally turn to debug dracut shell.

2. use cmd `fsck.ext4` and `e2fsck`  seems not have obvious problems.
mount all my Linux partitions one-by-one, found the problem that my root partition lost.

3. seems I find the root cause that partition table is not in good condition.
cannot find /root.
But all other partitions are work fine.

4. After a while I decide to continue.
I’ve a iso image of “Fedora-15-i686-Live-XFCE.iso” on my Windows partition.
It’s prepared for the first installation from iso.

5. so use this iso for a live linux rescue env.
editing the grub command
(my /boot is not affected, so grub still works, even if it fail, I have grub4dos ready. )

root (hd0,4)
kernel /LiveOS/vmlinuz0 root=live:/dev/sda5 ro liveimg rhgb rootfstype=auto
initrd /LiveOS/initrd0.img

6. boot the LiveCD,  mount the disk partitions and check. seems all ok except the root partition.
TestDisk is a well-known free tool that can help repair the partition table and find the lost partitions…..
It’s however fine my LiveOS can connect internet and download TestDisk binary….
Use TestDisk Analyze to find the partition table, write back to Disk…
<Caution: the write back operation is not safe, backup current table if necessary>

7. reboot OS but ‘m still blocked on GRUB page, so I had to turned back to LiveOS as in step5

8. from my notes, noticed that the disk sequence has already changed…
for example, the /dev/sda5 windows partition is now marked as /dev/sda3
/boot which was /dev/sda8 is now /dev/sda5

need to change following files, replace the changed disk id:

(/BOOT_PARTITION)/grub/menu.lst
(/ROOT_PARTITION)/etc/fstab

for example change (hd0,8)->(hd0,4) on my env. for /boot
change /dev/sda05 mount point in fstab to /dev/sda03
those records in fstab using UUID is not necessary. if the uuid of disk partition is not changed.
<use cmd `blkid` to verify>

9. since the boot partition id changed and last reboot blocked on the grub page.
need to re-install grub

[root@localhost liveuser]# grub
Probing devices to guess BIOS drives. This may take a long time.

    GNU GRUB  version 0.97-71.fc15  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]
grub> root (hd0,4)
root (hd0,4)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"...  26 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd0) (hd0)1+26 p (hd0,4)/grub/stage2 /grub/grub.conf"... succeeded
Done.

10. reboot  and OS can correctly restart… all partitions found.
using e2fsck to check and verify.

—————————————————
Fri Dec  9 10:36:22 CST 2011

update:
Another issue after the partition table recover.

My Oracle DB cannot startup

ORA-00845: MEMORY_TARGET not supported on this system

To Fix:

Process PMON died, see its trace file
USER (ospid: 8872): terminating the instance due to error 443
Instance terminated by USER, pid = 8872
Fri Dec 09 10:31:57 2011
Starting ORACLE instance (normal)
WARNING: You are trying to use the MEMORY_TARGET feature.
This feature requires the /dev/shm file system to be mounted for at least 843055104 bytes.
/dev/shm is either not mounted or is mounted with available space less than this size.
Please fix this so that MEMORY_TARGET can work as expected.
Current available is 755195904 and used is 296345600 bytes.
 Ensure that the mount point is /dev/shm for this directory.
memory_target needs larger /dev/shm

so, umount all bind mount point on tmpfs, and remount with a larger size.

# mount -o remount,size=2G /dev/shm
Install chmsee 2 for Fedora
Nov 24th, 2011 by suse

Fedora already upgraded xulrunner related packages(Firefox/thunderbird) to v8.0. but chmsee package not yet catch up.

so need to pull the fresh codes and compile for myself.

https://github.com/jungleji/chmsee/tags

check the following packages installed.
xulrunner-8.0-1.fc15.x86_64
xulrunner-devel-8.0-1.fc15.x86_64

compile the src and write a short script for generated app:

/home/suse> cat `which chm`
#!/bin/sh
LANG=

xulrunner /home/suse/workspace/chmsee/application.ini "$*"
Poor Yum Repo: OracleLinux6
Nov 7th, 2011 by suse

I’m now working on an Oracle Linux 6U1 x64 box, planning to inst new 11R2 image.

Problem hit here.

# yum install unixODBC-devel.i686
...
--> Running transaction check
---> Package unixODBC.i686 0:2.2.14-11.el6 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: unixODBC-2.2.14-11.el6.i686
...
---> Package glibc.i686 0:2.12-1.25.el6 will be installed
...--> Processing Dependency: glibc-common = 2.12-1.25.el6 for package: glibc-2.12-1.25.el6.i686
---> Package ncurses-libs.i686 0:5.7-3.20090208.el6 will be installed
---> Package nss-softokn-freebl.i686 0:3.12.9-3.el6 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.12-1.25.el6.i686 (ol6_u1_base)
           Requires: glibc-common = 2.12-1.25.el6
           Installed: glibc-common-2.12-1.25.el6_1.3.x86_64 (@ol6_latest)
               glibc-common = 2.12-1.25.el6_1.3
           Available: glibc-common-2.12-1.25.el6.x86_64 (ol6_u1_base)
               glibc-common = 2.12-1.25.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

we can see that glibc.i686 <tip: just add arch. tag to install related pkg.> cannot be resolved  for glibc-common label check failure.

it’s funny but not worse, ORCL even doesn’t provide glibc-common.i686 package…

http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/x86_64/

It should be a bug here….

WorkAround:

1. pull glibc package from weburl glibc-2.12-1.25.el6.i686.rpm.
2. # yum localinstall glibc-2.12-1.25.el6.i686.rpm
3. # yum install unixODBC-devel unixODBC-devel.i686
4. continue…

Notes….
Poor Yum repo…especially on x64 platform day’s, mixing with i686 libs.

Emerald package has retired
Oct 8th, 2011 by suse

It’s so long time to issue yum-update on my F15 boxes.
found the emerald packages already removed from repo…

[Following links tell everything:]
https://bugzilla.redhat.com/show_bug.cgi?id=739617
http://fedoraforum.org/forum/showthread.php?p=1516387
http://pkgs.fedoraproject.org/gitweb/?p=emerald.git;a=shortlog;h=refs/heads/master

[Workaround to continue running Emerald:]
just go back to 0.9.4~
1.  Download essential packages:
[x86_64]

wget http://mirrors.reflected.net/fedora/linux/releases/15/Everything/x86_64/os/Packages/{compiz-0.9.4-1.fc15.x86_64.rpm,compiz-gtk-0.9.4-1.fc15.x86_64.rpm,ccsm-0.9.4-1.fc15.noarch.rpm,compiz-plugins-main-0.9.4-1.fc15.x86_64.rpm,compizconfig-python-0.9.4-1.fc15.x86_64.rpm,libcompizconfig-0.9.4-1.fc15.x86_64.rpm,emerald-0.8.5-0.4.git90c9604441.fc15.x86_64.rpm,emerald-themes-0.5.2-6.fc15.noarch.rpm }

[i386]

wget http://mirrors.reflected.net/fedora/linux/releases/15/Everything/i386/os/Packages/{compiz-0.9.4-1.fc15.i686.rpm,compiz-gtk-0.9.4-1.fc15.i686.rpm,ccsm-0.9.4-1.fc15.noarch.rpm,compiz-plugins-main-0.9.4-1.fc15.i686.rpm,compizconfig-python-0.9.4-1.fc15.i686.rpm,libcompizconfig-0.9.4-1.fc15.i686.rpm,emerald-0.8.5-0.4.git90c9604441.fc15.i686.rpm,emerald-themes-0.5.2-6.fc15.noarch.rpm}

2. Remove current 0.9.5.0 compiz related packages.

rpm -qa | grep 0.9.5.0 | xargs rpm -e --nodeps

3. install the RPMs downloaded above.

4. edit the /etc/yum.conf to block compiz/emerald related updates.

 echo "exclude=ccsm* compiz* compizconfig-python* compiz-gtk* compiz-plugins-main* libcompizconfig*" >> /etc/yum.conf

Well now I’ve blocked updates on compiz and libreoffice… is there any more?

VMSetError: VirtualBox can’t operate in VMX root mode.
Jul 19th, 2011 by suse

VirtualBox failed to start VM guest on OEL5 node,

00:00:00.186 Package type: LINUX_64BITS_RHEL_5
...
...
00:00:00.190 VMSetError: VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot
00:00:00.190 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={515e8e8d-f932-4d8e-9f32-79a52aead882} aComponent={Console}
             aText={VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and
                   reboot (VERR_VMX_IN_VMX_ROOT_MODE)},
             preserve=false
00:00:00.192 Using known keycode mapping for keycode to scan code conversion
00:00:00.193 Power up failed (vrc=VERR_VMX_IN_VMX_ROOT_MODE, rc=NS_ERROR_FAILURE (0X80004005))

To Workaround:

# modprobe -r kvm-intel
where is the whereis
Jul 14th, 2011 by suse

Today when I’m applying some scripts on Solaris 11Express nodes, a interesting error comeup,

  -bash: whereis: command not found

As on Solaris 10, we use cmd whereis(/usr/ucb/whereis) as a standard component.
(On Linux, it’s also a part of the util-linux-ng package )

Solaris 11X doesn’t include this command in default set, so turn to documents for help:

<Oracle Solaris 11 ISV Adoption Guide>

  Changes the Directory to /usr/ucb For a live CD installation, the path /usr/ucb does
not exist by default. It can be added, along with many of the standard /usr/ucb tools by
installing the 'compatibility/ucb' package from the repository.
  Note though that support for legacy plotters has been removed and this sees the
removal of the following files (PSARC/2009/540):
...
...
  Other than these changes all of the commands available in /usr/ucb in Oracle Solaris 10
continue to be available in Oracle Solaris 11 through the compatibility/ucb package.

Very lucky the command whereis is the rest  for kept in compatibility/ucb package as optional.
But it’s no longer suggested to use such cmds in further SOLs, I finally gave up refresh the toolkits.

[Refrence:]
Oracle Solaris 11 ISV Adoption Guide
Solaris 11 Express Changes: Where is /usr/ucb ?
PSARC/2009/540*
*this arc shows the discussion on some port specific /usr/ucb commands,
the abandon of those codes speed up the far and away of those BSD like code.

From this point, SOL’s running faster than Linux….

chmsee doesnt work on Fedora 15 official
Jun 28th, 2011 by suse

just found that the chmsee tool doesnt work well today. it should worked at the release version and failed when yum up2date.
check and filed a bug on this issue.

[suse@suse ~]$LANG=
[suse@suse ~]$chmsee

** (chmsee:17763): WARNING **: GECKO_UTILS >>> Couldn't find a compatible GRE!

** ERROR **: Initialize html render engine failed!
aborting...
Aborted

W/R
export GRE_HOME env before run the tool,

$export GRE_HOME=/usr/lib/xulrunner-2/
$chmsee
compile rose-0.9.5a-14791 on Fedora 15
Jun 26th, 2011 by suse

rose is a nice tool, suggested when reading the book <The CERT C Secure Coding Standard>

just install the tool on my Fedora 15 node,

1. Fetch the latest source code from official website: 0.9.5a-multiplatform-14791
2. Prepare the packages needed,(I use official Java Bins configured, which can be detected by configure script)

yum install  boost-devel  gcc-gfortran

3. modify the configure script incase a boost version detect failure.

8622c8622
< rose_boost_version=`grep "#define BOOST_VERSION " ${ac_boost_path}/include/boost/version.hpp | cut -d" " -f 3`
---
> rose_boost_version=`grep "#define BOOST_VERSION " /usr/include/boost/version.hpp | cut -d" " -f 3`

**About the path , I use following line to determine, it may also works on RH related platform.

      $grep BOOST_VERSION `rpm -ql boost-devel| grep version`

4. configure with setting, for currently fedora.15 using gcc-4.6.0.

--disable-gcc-version-check
         Disable GCC version 4.0.x - 4.4.x verification check

If you do only need some(not all) languages supported, using

--enable-languages=LIST Build specific languages:
                 all,none,binary-analysis,c,c++,cuda,fortran,java,opencl,php
                 (default=all)

5. make and continue.
Before make do modify the Makefile,  or the script shall not fetch the related EDG binaries for version4.6.

320c320
< GENERATED_COMPILER_NAME_AND_VERSION_SUFFIX = GNU-4.6
---
> GENERATED_COMPILER_NAME_AND_VERSION_SUFFIX = GNU-4.4
»  Welcome:  You're the web
 stats visitor!
© Copyrights by SinoSuSE