Sunday, August 16, 2015

GCC 4.8 on CentOS

I finally found a simple way to install gcc/g++ 4.8 (required to use c++11 syntax) on my CentOS 6 distribution!

Here is the link:

http://braaten-family.org/ed/blog/2014-05-28-devtools-for-centos/

NOTE:

I suggest you to update your .bashrc file with the following line

source /opt/rh/devtoolset-2/enable


Otherwise you cannot run the newest version of the gcc/g++!


NOTE
Adding only this line to .bashrc: 

scl enable devtoolset-2 bash 

causes a fork-bomb!!!!


REFERENCES:
http://unix.stackexchange.com
http://braaten-family.org/ed/blog/2014-05-28-devtools-for-centos/ 

Sunday, June 28, 2015

eatsyscall.asm could not read symbols: File in wrong format

If you are reading Assembly Language Step-by-Step: Programming with Linux (3rd edition) by Jeff Dantemann and you came to the first program eatsyscall.asm you'll probably get this error when you link the file with the command:

ld -o eatsyscall eatsyscall.o

eatsyscall.o: could not read symbols: File in wrong format

the solution is to add another parameter to the ld command:

ld -o eatsysdemo eatsyscall.o -m elf_i386


The problem is that you are running a Linux system where both 32bit and 64bit libraries are present and ld will complain if you link libraries of different types.
Enjoy the reading.

Monday, June 8, 2015

Where to download Oracle Client "FULL" (Not the instant version)

To  download the Full Oracle Client, not the Instant version, you need to go the download page for the Oracle Database and then select the "View All" option next to the Oracle Database for your Operating System.
For Oracle 12c this is the url
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index-092322.html


Sunday, February 15, 2015

A super reference for manipulating jar/ear/war files directly from command line

Here is the reference javaworld.com/

My favorite commands are:

// listing all files
jar tvf "fileJAR/EAR"  

//updating a file in a JAR/EAR file
jar uvf "fileJAR/EAR" path/to/file/to/update 

//extracting a file from a JAR/EAR/WAR file
jar xvf "fileJAR/EAR" path/to/file/to/extract