Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Installing 32 BIT DBI and DBD

by gaurav_herein (Novice)
on Sep 03, 2013 at 04:59 UTC ( #1052011=note: print w/ replies, xml ) Need Help??


in reply to Installing 32 BIT DBI and DBD

Finally with some work around I fixed it. yeeepeee..!!!

Here is the steps I took.

1. changed "CC = gcc" to "CC = gcc -m32"

2. changed " LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) $(LDDLFLAGS) $(LDFROM) $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST) $(CHMOD) $(PERM_RWX) $@"

to

"$(CC) $(LDDLFLAGS) $(LDFROM) $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST) $(CHMOD) $(PERM_RWX) $@"

This worked in installing 32 bit DBI.

in installing DBD I changed lib to lib32 to the paths which were pointing to oracle 64 bit client lib which was at 3-4 places.

This worked installing DBD 32 bit.

Updating for others references.

Thanks


Comment on Re: Installing 32 BIT DBI and DBD
Re^2: Installing 32 BIT DBI and DBD
by Anonymous Monk on Sep 03, 2013 at 08:58 UTC

    Finally with some work around I fixed it. yeeepeee..!!! Here is the steps I took. Updating for others references.

    Congratulations, I know that feeling :)

    So you hacked Makefile? That works. The following might also work

    Before running Makefile.PL

    export CFLAGS='-m32' export CXXFLAGS='-m32' export LDFLAGS='-m32'

    Or as arguments to Makefile.PL

    perl Makefile.PL CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32

    This should propagate -m32 as arguments to gcc/ldd

      OK. I will try this as well on other server next time.

      Thanks Guys :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052011]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-07-07 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls