Installing CC compiler on Sun Solaris

Hi there,

I am installing DBI for perl on SUN Solaris 11, and getting an error "CC not found".

Can I know if the cc installed or not?

Is there is any way that I can install it without downloading all SolarisStudio?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do youhave any compiling tools?

Using environment variable CC=gcc may solve the issue.
pkginfo | grep 'C '

The DVD may include development packages that include a C compiler.

You can download gcc from and build it. has packages.

If you get the source, there are instructions on how to build/compile gcc.
Meaq99Author Commented:
Thanks  arnold for your comment, however as I know the DBI should be build with the same compiler which has been used for the Perl itself, and since the make test error says "CC not found" that means it has to be build with CC only.

Correct me if I am wrong.
I do not believe the Modules have to be compiled using the same compiler, they just need to be compiled on the platform where they will be used.

run perl --version

It should tell you all you need to know about the compiler. is a resource where you can get compiled packages.
Your solaris 11 DVD may include additional development packages which would include a compiler.

CC is often referenced as the compiler (environment variable).

See if you have gcc on the system already(but it doe not seem like it CC,gcc, and g++ are part of the GNU C compiler package), and if you do, prior to running perl
Do CC=gcc
And that should eliminate the issue.
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

Meaq99Author Commented:
I have downloaded the SolarisStudio and included its path, the compiler works, but still I got this error when I make test:

ld: fatal: file /orabin/app/oracle/product/11.2.0/db_1/lib// wrong ELF class: ELFCLASS64
ld: fatal: file processing errors. No output written to blib/arch/auto/DBD/Oracle/
*** Error code 2
make: Fatal error: Command failed for target `blib/arch/auto/DBD/Oracle/'
It seems your compilation of DBD::Oracle starts as 32bit while the oracle lib you have is 64.
An option is to get/install/add the 32bit libs or make sure your parameters only point to 64bit.

See if the below help resolve your issue, the first points to oracle 10 DB, just see if the suggested solutions help resolve your issue.

This is a cpan reference that point to a 32 bit lib,

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Meaq99Author Commented:
Thanks arnold, I have downloaded the 32bit oracle client and it went ok.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.