http://www.perlmonks.org?node_id=1052011


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

Replies are listed 'Best First'.
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 :)