Wednesday, November 21, 2012

grep: unknown devices method


# grep -r "-DACE_NDEBUG" .
grep: unknown devices method


solution:
remove -
use #grep -r "DACE_NDEBUG" .


Friday, November 9, 2012

Let's do some shell programming!

1. Check what shell version you have:
$ cat /etc/shells

2. Show which shell you are using currently:
echo $SHELL

3. This is a good website for learning shell:
http://arachnoid.com/linux/shell_programming.html

Monday, November 5, 2012

Failed to install java 1.3 in a x86-64 suse 11

Failed to install java 1.3 in a x86-64 suse 11.

Get the error message like: Error: can't find libjava.so.

It seems that java 1.3 has not x86 64 version.

export not working in Unix

Problem:

Create a script,  aaa.script

export bbb=/opt/ccc

Then, run it by typing ./aaa.script.

After that, # echo bbb and get nothing.

Solution:

run it by typing . aaa.script

Friday, November 2, 2012

make: 1254-057 Shell command needs a leading tab.



Notice that you need to use tab instead of spaces in line 4,7 and 10. Then, everything goes fine.



Don't use make in AIX, use gmake

gcc and g++ in AIX 6.1








I have these files download from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/ezinstall.html

They have a certain dependency on each other, so the order to execute them needs to be right.

My order 1->3->4->5->2->6

Then I wrote a simple Hello World app and run it. Get warnings like this, but they don't matter.


rpm -Uvh xxxx.rpm

rpm -Uvh xxxx.rpm