|
Posted by bipède on January 10, 2005, 5:51 pm
Please log in for more thread options
hi,
can't install DBD-mysql on solaris 9 system, the "perl Makefile.PL" give
wrong parameters to gcc :
make[1]: Leaving directory `/usr/local/DBD-mysql-2.9005_3/DBI-1.46'
gcc -B/usr/ccs/bin/ -c -I. -I/usr/local/mysql/include -Xa -xstrconst
-mt -D_FORTEC_ -xarch=v9 -g -fno-strict-aliasing -pipe
-I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION="2.9005_3"
-DXS_VERSION="2.9005_3" -fPIC
"-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" dbdimp.c
gcc: unrecognized option `-Xa'
gcc: language arch=v9 not recognized
gcc: dbdimp.c: linker input file unused because linking not done
make: *** No rule to make target `Driver.xst', needed by `mysql.xsi'. Stop.
Seems that the param line is obtained from the 'mysql_config' program ?
Anyone have some idea ?
|
|
Posted by Sherm Pendley on January 10, 2005, 3:43 pm
Please log in for more thread options
bipède wrote:
> make[1]: Leaving directory `/usr/local/DBD-mysql-2.9005_3/DBI-1.46'
> gcc -B/usr/ccs/bin/ -c -I. -I/usr/local/mysql/include -Xa -xstrconst
> -mt -D_FORTEC_ -xarch=v9 -g -fno-strict-aliasing -pipe
> Seems that the param line is obtained from the 'mysql_config' program ?
Are you certain of that, or is it a guess? What does "mysql_config" print
when you run it by hand? Or are those flags coming from Perl itself? Try:
perl -MConfig -e 'print $Config, "n"'
If it's the latter, it's a common error - you're trying to build a module
using GCC, but Perl itself was built with another compiler - probably
Sun's. There are two common workarounds - either build a copy of Perl from
source using GCC, or obtain a packaged Perl that was built with GCC.
Google for "Solaris Perl modules GCC" for *lots* more.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
|
|
Posted by bipède on January 12, 2005, 12:08 pm
Please log in for more thread options Sherm Pendley wrote:
> bipède wrote:
>
>
>>make[1]: Leaving directory `/usr/local/DBD-mysql-2.9005_3/DBI-1.46'
>>gcc -B/usr/ccs/bin/ -c -I. -I/usr/local/mysql/include -Xa -xstrconst
>>-mt -D_FORTEC_ -xarch=v9 -g -fno-strict-aliasing -pipe
>
>
>>Seems that the param line is obtained from the 'mysql_config' program ?
>
>
> Are you certain of that, or is it a guess? What does "mysql_config" print
> when you run it by hand? Or are those flags coming from Perl itself? Try:
>
> perl -MConfig -e 'print $Config, "n"'
>
> If it's the latter, it's a common error - you're trying to build a module
> using GCC, but Perl itself was built with another compiler - probably
> Sun's. There are two common workarounds - either build a copy of Perl from
> source using GCC, or obtain a packaged Perl that was built with GCC.
>
> Google for "Solaris Perl modules GCC" for *lots* more.
>
> sherm--
>
Thanks for your answer.
That was not the problem, the ccflags of perl was different. But your
idea have gave me the possibility to see that there was two kind of perl
package on my system, one SMC and one CSW... seems not compatible (yet
another reason to hate sun). This give some strange results in many
case. I have suppress the SMC one and used pkg-get to install
pm_dbdmysql package and now it looks good.
I dont exactly understand what are this two kind of packages...
|
|
Posted by gonchi on January 19, 2005, 3:36 am
Please log in for more thread options bipède wrote:
> Sherm Pendley wrote:
> > bipède wrote:
> >
> >
> >>make[1]: Leaving directory `/usr/local/DBD-mysql-2.9005_3/DBI-1.46'
> >>gcc -B/usr/ccs/bin/ -c -I. -I/usr/local/mysql/include -Xa
-xstrconst
> >>-mt -D_FORTEC_ -xarch=v9 -g -fno-strict-aliasing -pipe
> >
> >
> >>Seems that the param line is obtained from the 'mysql_config'
program ?
> >
> >
> > Are you certain of that, or is it a guess? What does "mysql_config"
print
> > when you run it by hand? Or are those flags coming from Perl
itself? Try:
> >
> > perl -MConfig -e 'print $Config, "n"'
> >
> > If it's the latter, it's a common error - you're trying to build a
module
> > using GCC, but Perl itself was built with another compiler -
probably
> > Sun's. There are two common workarounds - either build a copy of
Perl from
> > source using GCC, or obtain a packaged Perl that was built with
GCC.
> >
> > Google for "Solaris Perl modules GCC" for *lots* more.
> >
> > sherm--
> >
>
> Thanks for your answer.
>
> That was not the problem, the ccflags of perl was different. But your
> idea have gave me the possibility to see that there was two kind of
perl
> package on my system, one SMC and one CSW... seems not compatible
(yet
> another reason to hate sun). This give some strange results in many
> case. I have suppress the SMC one and used pkg-get to install
> pm_dbdmysql package and now it looks good.
> I dont exactly understand what are this two kind of packages...
Hi,
i've exactly the same problem i'm affraid that mysql binary version is
incompatible with the perl version . The dynamic loader fail to load
mysql client lib although the mysql server is a binary version from
sunfreesoft and also SMCperl , they aren't compatibles. they were
compiled with gcc compiler but may be different version and format. i
think SMCperl is 64 bit, i don't know if mysql was compiled 64 too. I
don't have CSWperl package, do you know from where did you take the
CSWperl?, may be this package is compatible with the sunfree mysql
server.
For more details about this problem you can see the mysql forum ,
DBD::mysql in solaris 9 discussion
http://forums.mysql.com/read.php?11,7767,7767#msg-7767
by!
|
| Similar Threads | Posted | | Problem installing win32::OLE | September 20, 2005, 12:52 pm |
| Problem installing Net::LDAP | September 22, 2005, 12:54 pm |
| Problem installing GD module | April 4, 2006, 12:26 pm |
| Problem with installing modules | November 24, 2006, 6:15 pm |
| Problem installing XML::Checker | March 21, 2007, 2:15 pm |
| Problem Installing Module | April 4, 2007, 10:02 am |
| Problem installing DBD-Oracle | June 5, 2008, 5:44 pm |
| Problem installing certain PERL modules | October 15, 2004, 4:47 am |
| Problem Installing Win32::OLE under cygwin | May 15, 2005, 9:45 pm |
| problem installing Gtk2 Module | January 10, 2005, 1:44 pm |
|