develooper Front page | perl.dbi.users | Postings from January 2019

Re: install DBD-mysql to macOS 10.13.x High Sierra

Thread Previous | Thread Next
From:
Rajeev Jain
Date:
January 16, 2019 03:27
Subject:
Re: install DBD-mysql to macOS 10.13.x High Sierra
Message ID:
0435B053-9080-43AC-9604-D98F6B9713CF@gmail.com
Hi Bruce,
This is very good to know. I’ll see if any solution materializes based on my current configuration otherwise I will give your recommendation a try. Basically mysql is based on .dmg install, perl and associated modules may be a combo of home-brew / cpan and so it is now a bit of a mess. My primary reason for installing DBD-mysql is to install bugzilla on my mac laptop. At any rate I appreciate your email and recommendation. Any further suggestions or tid bits of knowledge are welcome.

—Rajeev



> On Jan 15, 2019, at 3:06 PM, Bruce Johnson <johnson@Pharmacy.Arizona.EDU> wrote:
> 
> I used MacPorts, and I replaced my whole stack: perl, MySQL and DBI with the MacPorts versions.
>  
> https://www.macports.org/ <https://www.macports.org/>
>  
> It’s about as close as I’ve seen to installing stuff on a mac as yum is on Linux boxes, super-simple: sudo port install <port file name> .
>  
> It puts everything off in /opt so the bane of Apple updates blowing away all your stuff is eliminated.
>  
> brew tries to keep everything inside the Apple library structure. The .dmg installs of MySQL from Oracle have never worked very well for me, which is why I ended up using MacPorts.
>  
> The Apple perl is still there for the OS stuff that uses it, but all of the perl modules I’ve installed from cpan are in the macports directory tree.
>  
>  
> -- 
> Bruce Johnson
> University of Arizona
> College of Pharmacy
> Information Technology Group
> 
> Institutions do not have opinions, merely customs
>  
>  
> On 1/15/19, 2:59 PM, "Rajeev Jain" <jainraje@gmail.com <mailto:jainraje@gmail.com>> wrote:
>  
> Anyone had success install DBD-mysql on macOS 10.13.x High Sierra?
> 
> I've tried using home-brew, cpan paths but always encounter various errors. 
> 
> I'm now manually installing and getting an error during the final link:
> 
> $>DBD-mysql-4.050$ make
> Skip blib/lib/DBD/mysql/INSTALL.pod (unchanged)
> Skip blib/lib/DBD/mysql.pm (unchanged)
> Skip blib/lib/Bundle/DBD/mysql.pm (unchanged)
> Skip blib/lib/DBD/mysql/GetInfo.pm (unchanged)
> Running Mkbootstrap for mysql ()
> chmod 644 "mysql.bs"
> "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644
> cc -c -I/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include -DDBD_MYSQL_WITH_SSL -g -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION="4.050" -DXS_VERSION="4.050" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" dbdimp.c
> cc -c -I/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include -DDBD_MYSQL_WITH_SSL -g -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION="4.050" -DXS_VERSION="4.050" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" mysql.c
> cc -c -I/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include -DDBD_MYSQL_WITH_SSL -g -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION="4.050" -DXS_VERSION="4.050" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" socket.c
> rm -f blib/arch/auto/DBD/mysql/mysql.bundle
> LD_RUN_PATH="/usr/local/mysql/lib" cc -arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -fstack-protector dbdimp.o mysql.o socket.o -o blib/arch/auto/DBD/mysql/mysql.bundle  
> -L/usr/local/mysql/lib -lmysqlclient -lssl -lcrypto \
> 
> ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
> ld: warning: ignoring file /usr/local/mysql/lib/libmysqlclient.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/mysql/lib/libmysqlclient.dylibld: warning:
> ignoring file /usr/local/mysql/lib/libssl.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/mysql/lib/libssl.dylib
> ld: warning: ignoring file /usr/local/mysql/lib/libcrypto.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/mysql/lib/libcrypto.dylib
> chmod 755 blib/arch/auto/DBD/mysql/mysql.bundle
> Manifying 3 pod documents
> 
> My high sierra was upgraded from a older OS version so my thinking is the i386 flag is left over from the prior install. Additionally mysql and mysqlclient was installed using a dmg package (not home brew).
> 
> How can the -arch i386 flag be removed?
> 
> Any help or guidance will be appreciated.
> 
>  
> TIA


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About