Can we fix this also?

http://defect.opensolaris.org/bz/show_bug.cgi?id=3506

It's simply a waste of time trying to download anything from the Internet
these days and trying to compile it on Solaris/OpenSolaris.  Linux is a few
yum installs and I can just get my work done.  It's really getting hard to
justify the extra effort that I need to put into OpenSolaris.

-Mike




On Thu, Aug 6, 2009 at 3:21 PM, Sriram Natarajan
<[email protected]>wrote:

> I think, unfortunately, you need to use Sun Studio . Can you kindly try
> with this
>
> pfexec pkg install sunstudioexpress
> export CC=/opt/SunStudioExpress/bin/cc
> export PATH=/usr/mysql/5.1/bin:$PATH
> .. followed by rest of
>
> If there isn't already, I will file a bug within MySQL to ensure that they
> support compiling these components with gcc as well.
>
> - Sriram
>
>
> Michael Mellinger wrote:
>
>> Ok.  On OpenSolaris 2009.06, I did the following:
>>
>> export PATH=/usr/mysql/5.1/bin:$PATH; # Adjusting PATH for missing
>> mysql_config msg
>>
>> # Comment lines in make file for gcc (OpenSolaris ships with gcc
>> (should optimize!))
>> #
>> #CCCDLFLAGS = -KPIC
>> #OPTIMIZE = -xO3 -xspace -xildoff
>>
>> Now it looks like I'm missing a math library ( libmopt)
>>
>> r...@sol3:~/.cpan/build/DBD-mysql-4.012# make
>> gcc -c  -I/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/DBI
>> -I/usr/mysql/5.1/include/mysql  -xprefetch=auto -xprefetch_level=3 -mt
>> -fns=no -fsimple=1 -xbuiltin=%all -xlibmil -xlibmopt   -DHAVE_RWLOCK_T
>> -DUNIV_SOLARIS -DBIG_TABLES -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO
>> -DVERSION=\"4.012\" -DXS_VERSION=\"4.012\"
>> "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"   dbdimp.c
>> gcc: language libmopt not recognized
>> gcc: dbdimp.c: linker input file unused because linking not done
>> gcc -c  -I/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/DBI
>> -I/usr/mysql/5.1/include/mysql  -xprefetch=auto -xprefetch_level=3 -mt
>> -fns=no -fsimple=1 -xbuiltin=%all -xlibmil -xlibmopt   -DHAVE_RWLOCK_T
>> -DUNIV_SOLARIS -DBIG_TABLES -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO
>> -DVERSION=\"4.012\" -DXS_VERSION=\"4.012\"
>> "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"   mysql.c
>> gcc: language libmopt not recognized
>> gcc: mysql.c: linker input file unused because linking not done
>> rm -f blib/arch/auto/DBD/mysql/mysql.so
>> LD_RUN_PATH="/usr/lib:/lib:/usr/mysql/5.1/lib/mysql" /usr/bin/perl
>> myld cc  -G dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so
>> -lCrun -lrt -L/usr/mysql/5.1/lib/mysql -R/usr/mysql/5.1/lib/mysql
>> -lmysqlclient -lz -lgen -lsocket -lnsl -lm
>> cc: dbdimp.o: No such file or directory
>> cc: mysql.o: No such file or directory
>>
>> -Mike
>>
>>
>>
>> On Thu, Aug 6, 2009 at 1:00 PM, Sriram
>> Natarajan<[email protected]> wrote:
>>
>>
>>> HI
>>> Unfortunately, this module is not shipped by default. You will need to
>>> download and compile this from CPAN. It was pretty straightforward with
>>> one
>>> minor kludge. If you run into any issues, please feel free to post your
>>> issue to this alias. We might be able to help you further. Please
>>> remember
>>> to add /usr/mysql/bin to your PATH before proceeding to download this
>>> module
>>> from CPAN
>>>
>>> - sriram
>>>
>>> Michael Mellinger wrote:
>>>
>>>
>>>> I've installed on my Perl packages.  However, it seems like the MySql
>>>> drivers aren't installed.  I tried the same example and it fails to
>>>> run.  Is there another package that I can install?
>>>>
>>>> http://cz.opensolaris.org/jive/thread.jspa?threadID=88879&tstart=135
>>>>
>>>>
>>>> r...@sol3:/export/home/melling/Downloads/lttoolbox-3.1.0#
>>>> /usr/mysql/5.1/bin/mysql_setpermission
>>>> Password for user  to connect to MySQL:
>>>> install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC
>>>> contains: /usr/perl5/5.8.4/lib/i86pc-solaris-64int
>>>> /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int
>>>> /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl
>>>> /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int
>>>> /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at (eval 9)
>>>> line 3, <STDIN> line 1.
>>>> Perhaps the DBD::mysql perl module hasn't been fully installed,
>>>> or perhaps the capitalisation of 'mysql' isn't right.
>>>> _______________________________________________
>>>> indiana-discuss mailing list
>>>> [email protected]
>>>> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>>>>
>>>>
>>>>
>>>
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to