I am trying to install perl support for my mac but every time i do so I get the same error
I typed in command line cpan -f -i DBI and recieved the same error over and over again.
admins-iMac-2:~ robensonsam$ cpan -f -i DBI
Reading '/Users/robinsensam/.cpan/Metadata'
Database was generated on Wed, 04 Jan 2017 11:29:02 GMT
Running install for module 'DBI'
Running make for T/TI/TIMB/DBI-1.636.tar.gz
Checksum for /Users/robinsensam/.cpan/sources/authors/id/T/TI/TIMB/DBI-1.636.tar.gz ok
CPAN.pm: Building T/TI/TIMB/DBI-1.636.tar.gz
*** Your LANG environment variable is set to 'en_US.UTF-8'
*** This may cause problems for some perl installations.
*** If you get test failures, please try again with LANG unset.
*** If that then works, please email dbi-dev#perl.org with details
*** including the output of 'perl -V'
Your perl was compiled with gcc (version 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)), okay.
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t
t/zvg_02dbidrv.t
t/zvg_03handle.t
t/zvg_04mods.t
t/zvg_05concathash.t
t/zvg_06attrs.t
t/zvg_07kids.t
t/zvg_08keeperr.t
t/zvg_09trace.t
t/zvg_10examp.t
t/zvg_11fetch.t
t/zvg_12quote.t
t/zvg_13taint.t
t/zvg_14utf8.t
t/zvg_15array.t
t/zvg_16destroy.t
t/zvg_19fhtrace.t
t/zvg_20meta.t
t/zvg_30subclass.t
t/zvg_31methcache.t
t/zvg_35thrclone.t (use threads)
t/zvg_40profile.t
t/zvg_41prof_dump.t
t/zvg_42prof_data.t
t/zvg_43prof_env.t
t/zvg_48dbi_dbd_sqlengine.t
t/zvg_49dbd_file.t
t/zvg_50dbm_simple.t
t/zvg_51dbm_file.t
t/zvg_52dbm_complex.t
t/zvg_53sqlengine_adv.t
t/zvg_60preparse.t
t/zvg_65transact.t
t/zvg_70callbacks.t
t/zvg_72childhandles.t
t/zvg_73cachedkids.t
t/zvg_80proxy.t
t/zvg_85gofer.t
t/zvg_86gofer_fail.t
t/zvg_87gofer_cache.t
t/zvg_90sql_type_cast.t
t/zvg_91_store_warning.t
Creating test wrappers for DBI::SQL::Nano:
t/zvn_48dbi_dbd_sqlengine.t
t/zvn_49dbd_file.t
t/zvn_50dbm_simple.t
t/zvn_51dbm_file.t
t/zvn_52dbm_complex.t
t/zvn_85gofer.t
Creating test wrappers for DBI::PurePerl:
t/zvp_01basics.t
t/zvp_02dbidrv.t
t/zvp_03handle.t
t/zvp_04mods.t
t/zvp_05concathash.t
t/zvp_06attrs.t
t/zvp_07kids.t
t/zvp_08keeperr.t
t/zvp_09trace.t
t/zvp_10examp.t
t/zvp_11fetch.t
t/zvp_12quote.t
t/zvp_13taint.t
t/zvp_14utf8.t
t/zvp_15array.t
t/zvp_16destroy.t
t/zvp_19fhtrace.t
t/zvp_20meta.t
t/zvp_30subclass.t
t/zvp_31methcache.t
t/zvp_35thrclone.t (use threads)
t/zvp_40profile.t
t/zvp_41prof_dump.t
t/zvp_42prof_data.t
t/zvp_43prof_env.t
t/zvp_48dbi_dbd_sqlengine.t
t/zvp_49dbd_file.t
t/zvp_50dbm_simple.t
t/zvp_51dbm_file.t
t/zvp_52dbm_complex.t
t/zvp_53sqlengine_adv.t
t/zvp_60preparse.t
t/zvp_65transact.t
t/zvp_70callbacks.t
t/zvp_72childhandles.t
t/zvp_73cachedkids.t
t/zvp_80proxy.t
t/zvp_85gofer.t
t/zvp_86gofer_fail.t
t/zvp_87gofer_cache.t
t/zvp_90sql_type_cast.t
t/zvp_91_store_warning.t
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano:
t/zvxgn_48dbi_dbd_sqlengine.t
t/zvxgn_49dbd_file.t
t/zvxgn_50dbm_simple.t
t/zvxgn_51dbm_file.t
t/zvxgn_52dbm_complex.t
t/zvxgn_85gofer.t
Creating test wrappers for DBD::Gofer + DBI::PurePerl:
t/zvxgp_01basics.t
t/zvxgp_02dbidrv.t
t/zvxgp_03handle.t
t/zvxgp_04mods.t
t/zvxgp_05concathash.t
t/zvxgp_06attrs.t
t/zvxgp_07kids.t
t/zvxgp_08keeperr.t
t/zvxgp_09trace.t
t/zvxgp_10examp.t
t/zvxgp_11fetch.t
t/zvxgp_12quote.t
t/zvxgp_13taint.t
t/zvxgp_14utf8.t
t/zvxgp_15array.t
t/zvxgp_16destroy.t
t/zvxgp_19fhtrace.t
t/zvxgp_20meta.t
t/zvxgp_30subclass.t
t/zvxgp_31methcache.t
t/zvxgp_35thrclone.t (use threads)
t/zvxgp_40profile.t
t/zvxgp_41prof_dump.t
t/zvxgp_42prof_data.t
t/zvxgp_43prof_env.t
t/zvxgp_48dbi_dbd_sqlengine.t
t/zvxgp_49dbd_file.t
t/zvxgp_50dbm_simple.t
t/zvxgp_51dbm_file.t
t/zvxgp_52dbm_complex.t
t/zvxgp_53sqlengine_adv.t
t/zvxgp_60preparse.t
t/zvxgp_65transact.t
t/zvxgp_70callbacks.t
t/zvxgp_72childhandles.t
t/zvxgp_73cachedkids.t
t/zvxgp_80proxy.t
t/zvxgp_85gofer.t
t/zvxgp_86gofer_fail.t
t/zvxgp_87gofer_cache.t
t/zvxgp_90sql_type_cast.t
t/zvxgp_91_store_warning.t
Creating test wrappers for DBI::SQL::Nano + DBI::PurePerl:
t/zvxnp_48dbi_dbd_sqlengine.t
t/zvxnp_49dbd_file.t
t/zvxnp_50dbm_simple.t
t/zvxnp_51dbm_file.t
t/zvxnp_52dbm_complex.t
t/zvxnp_85gofer.t
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano + DBI::PurePerl:
t/zvxgnp_48dbi_dbd_sqlengine.t
t/zvxgnp_49dbd_file.t
t/zvxgnp_50dbm_simple.t
t/zvxgnp_51dbm_file.t
t/zvxgnp_52dbm_complex.t
t/zvxgnp_85gofer.t
Checking if your kit is complete...
Looks good
I see you're using perl 5.018002 on darwin-thread-multi-2level, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.
Writing Makefile for DBI
Writing MYMETA.yml and MYMETA.json
/usr/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBD/Gofer/Transport/pipeone.pm blib/lib/DBD/Gofer/Transport/pipeone.pm
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBI/Gofer/Serializer/DataDumper.pm blib/lib/DBI/Gofer/Serializer/DataDumper.pm
cp lib/DBI/Gofer/Serializer/Base.pm blib/lib/DBI/Gofer/Serializer/Base.pm
cp lib/DBD/Gofer/Policy/rush.pm blib/lib/DBD/Gofer/Policy/rush.pm
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/Gofer/Serializer/Storable.pm blib/lib/DBI/Gofer/Serializer/Storable.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBD/File/Developers.pod blib/lib/DBD/File/Developers.pod
cp dbixs_rev.h blib/arch/auto/DBI/dbixs_rev.h
cp lib/DBI/Gofer/Transport/Base.pm blib/lib/DBI/Gofer/Transport/Base.pm
cp lib/DBD/Gofer/Transport/stream.pm blib/lib/DBD/Gofer/Transport/stream.pm
cp lib/DBD/Gofer.pm blib/lib/DBD/Gofer.pm
cp lib/DBI/Util/_accessor.pm blib/lib/DBI/Util/_accessor.pm
cp lib/DBI/Gofer/Transport/pipeone.pm blib/lib/DBI/Gofer/Transport/pipeone.pm
cp lib/DBI/Gofer/Execute.pm blib/lib/DBI/Gofer/Execute.pm
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/Util/CacheMemory.pm blib/lib/DBI/Util/CacheMemory.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
cp DBI.pm blib/lib/DBI.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBD/Gofer/Policy/Base.pm blib/lib/DBD/Gofer/Policy/Base.pm
cp lib/DBD/File/HowTo.pod blib/lib/DBD/File/HowTo.pod
cp lib/DBI/DBD/SqlEngine/HowTo.pod blib/lib/DBI/DBD/SqlEngine/HowTo.pod
cp lib/DBI/DBD/SqlEngine/Developers.pod blib/lib/DBI/DBD/SqlEngine/Developers.pod
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp lib/DBD/Gofer/Transport/corostream.pm blib/lib/DBD/Gofer/Transport/corostream.pm
cp lib/DBI/Gofer/Request.pm blib/lib/DBI/Gofer/Request.pm
cp lib/DBD/Gofer/Policy/pedantic.pm blib/lib/DBD/Gofer/Policy/pedantic.pm
cp lib/DBD/Gofer/Policy/classic.pm blib/lib/DBD/Gofer/Policy/classic.pm
cp lib/DBI/DBD/SqlEngine.pm blib/lib/DBI/DBD/SqlEngine.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp dbixs_rev.pl blib/lib/dbixs_rev.pl
cp lib/DBD/File/Roadmap.pod blib/lib/DBD/File/Roadmap.pod
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp lib/DBI/Gofer/Response.pm blib/lib/DBI/Gofer/Response.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp lib/DBI/Gofer/Transport/stream.pm blib/lib/DBI/Gofer/Transport/stream.pm
cp lib/DBD/Gofer/Transport/null.pm blib/lib/DBD/Gofer/Transport/null.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBD/Gofer/Transport/Base.pm blib/lib/DBD/Gofer/Transport/Base.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap /System/Library/Perl/5.18/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION=\"1.636\" -DXS_VERSION=\"1.636\" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
/usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap /System/Library/Perl/5.18/ExtUtils/typemap -typemap typemap DBI.xs > DBI.xsc && mv DBI.xsc DBI.c
cc -c -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION=\"1.636\" -DXS_VERSION=\"1.636\" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter DBI.c
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.bundle
cc -mmacosx-version-min=10.12.2 -arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -fstack-protector DBI.o -o blib/arch/auto/DBI/DBI.bundle \
\
chmod 755 blib/arch/auto/DBI/DBI.bundle
cp DBI.bs blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbiprof.PL dbiprof
Extracted dbiprof from dbiprof.PL with variable substitutions.
cp dbiprof blib/script/dbiprof
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbiprof
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbiproxy.PL dbiproxy
Extracted dbiproxy from dbiproxy.PL with variable substitutions.
cp dbiproxy blib/script/dbiproxy
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbiproxy
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbilogstrip.PL dbilogstrip
Extracted dbilogstrip from dbilogstrip.PL with variable substitutions.
cp dbilogstrip blib/script/dbilogstrip
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbilogstrip
Manifying blib/man1/dbiproxy.1
Manifying blib/man1/dbilogstrip.1
Manifying blib/man1/dbiprof.1
Manifying blib/man3/DBD::Gofer::Transport::null.3pm
Manifying blib/man3/DBI::DBD::SqlEngine::HowTo.3pm
Manifying blib/man3/DBI::ProfileDumper::Apache.3pm
Manifying blib/man3/DBD::Gofer::Policy::rush.3pm
Manifying blib/man3/DBI::DBD::SqlEngine::Developers.3pm
Manifying blib/man3/DBI::Gofer::Transport::Base.3pm
Manifying blib/man3/DBD::DBM.3pm
Manifying blib/man3/DBD::File::HowTo.3pm
Manifying blib/man3/DBI::Const::GetInfo::ANSI.3pm
Manifying blib/man3/DBI::ProfileDumper.3pm
Manifying blib/man3/DBI::Profile.3pm
Manifying blib/man3/DBI::ProxyServer.3pm
Manifying blib/man3/DBD::Proxy.3pm
Manifying blib/man3/DBD::File::Roadmap.3pm
Manifying blib/man3/DBI::Gofer::Execute.3pm
Manifying blib/man3/DBD::Gofer::Policy::pedantic.3pm
Manifying blib/man3/DBI::Const::GetInfoReturn.3pm
Manifying blib/man3/Bundle::DBI.3pm
Manifying blib/man3/DBI::Util::CacheMemory.3pm
Manifying blib/man3/DBI::ProfileSubs.3pm
Manifying blib/man3/DBI::SQL::Nano.3pm
Manifying blib/man3/DBD::Sponge.3pm
Manifying blib/man3/DBD::Gofer::Policy::classic.3pm
Manifying blib/man3/DBI::Gofer::Request.3pm
Manifying blib/man3/DBI::DBD.3pm
Manifying blib/man3/DBI::Const::GetInfo::ODBC.3pm
Manifying blib/man3/DBD::Gofer::Transport::Base.3pm
Manifying blib/man3/DBD::Gofer::Transport::pipeone.3pm
Manifying blib/man3/DBI::Gofer::Serializer::Base.3pm
Manifying blib/man3/DBI::Const::GetInfoType.3pm
Manifying blib/man3/DBD::Gofer::Transport::corostream.3pm
Manifying blib/man3/DBD::File.3pm
Manifying blib/man3/DBD::Gofer::Policy::Base.3pm
Manifying blib/man3/DBI::Gofer::Serializer::Storable.3pm
Manifying blib/man3/DBI::Gofer::Serializer::DataDumper.3pm
Manifying blib/man3/DBI::Gofer::Response.3pm
Manifying blib/man3/DBI::Gofer::Transport::pipeone.3pm
Manifying blib/man3/Win32::DBIODBC.3pm
Manifying blib/man3/DBD::File::Developers.3pm
Manifying blib/man3/DBI.3pm
Manifying blib/man3/DBI::Gofer::Transport::stream.3pm
Manifying blib/man3/DBI::PurePerl.3pm
Manifying blib/man3/DBI::DBD::SqlEngine.3pm
Manifying blib/man3/DBI::ProfileData.3pm
Manifying blib/man3/DBI::DBD::Metadata.3pm
Manifying blib/man3/DBD::Gofer.3pm
Manifying blib/man3/DBD::Gofer::Transport::stream.3pm
Manifying blib/man3/DBI::W32ODBC.3pm
TIMB/DBI-1.636.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basics.t .................... # --- Perl 5.018002 on darwin-thread-multi-2level
t/01basics.t .................... ok
t/02dbidrv.t .................... ok
t/03handle.t .................... ok
t/04mods.t ...................... ok
t/05concathash.t ................ ok
t/06attrs.t ..................... ok
t/07kids.t ...................... ok
t/08keeperr.t ................... ok
t/09trace.t ..................... ok
t/10examp.t ..................... ok
t/11fetch.t ..................... ok
t/12quote.t ..................... ok
t/13taint.t ..................... ok
t/14utf8.t ...................... ok
t/15array.t ..................... ok
t/16destroy.t ................... ok
t/19fhtrace.t ................... ok
t/20meta.t ...................... ok
t/30subclass.t .................. ok
t/31methcache.t ................. ok
t/35thrclone.t .................. ok
t/40profile.t ................... ok
t/41prof_dump.t ................. ok
t/42prof_data.t ................. ok
t/43prof_env.t .................. ok
t/48dbi_dbd_sqlengine.t ......... ok
t/49dbd_file.t .................. ok
t/50dbm_simple.t ................ ok
t/51dbm_file.t .................. ok
t/52dbm_complex.t ............... skipped: DBI::SQL::Nano is being used
t/53sqlengine_adv.t ............. ok
t/60preparse.t .................. ok
t/65transact.t .................. ok
t/70callbacks.t ................. ok
t/72childhandles.t .............. ok
t/73cachedkids.t ................ ok
t/80proxy.t ..................... skipped: modules required for proxy are probably not installed (e.g., RPC/PlClient.pm)
t/85gofer.t ..................... ok
t/86gofer_fail.t ................ ok
t/87gofer_cache.t ............... ok
t/90sql_type_cast.t ............. ok
t/91_store_warning.t ............ ok
t/pod-coverage.t ................ skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t ......................... ok
t/zvg_01basics.t ................ # --- Perl 5.018002 on darwin-thread-multi-2level
t/zvg_01basics.t ................ ok
t/zvg_02dbidrv.t ................ ok
t/zvg_03handle.t ................ ok
t/zvg_04mods.t .................. ok
t/zvg_05concathash.t ............ ok
t/zvg_06attrs.t ................. ok
t/zvg_07kids.t .................. ok
t/zvg_08keeperr.t ............... ok
t/zvg_09trace.t ................. ok
t/zvg_10examp.t ................. ok
t/zvg_11fetch.t ................. ok
t/zvg_12quote.t ................. ok
t/zvg_13taint.t ................. skipped: Taint attribute tests not functional with DBI_AUTOPROXY
t/zvg_14utf8.t .................. ok
t/zvg_15array.t ................. ok
t/zvg_16destroy.t ............... ok
t/zvg_19fhtrace.t ............... ok
t/zvg_20meta.t .................. ok
t/zvg_30subclass.t .............. ok
t/zvg_31methcache.t ............. ok
t/zvg_35thrclone.t .............. ok
t/zvg_40profile.t ............... ok
t/zvg_41prof_dump.t ............. ok
t/zvg_42prof_data.t ............. ok
t/zvg_43prof_env.t .............. ok
t/zvg_48dbi_dbd_sqlengine.t ..... ok
t/zvg_49dbd_file.t .............. ok
t/zvg_50dbm_simple.t ............ ok
t/zvg_51dbm_file.t .............. ok
t/zvg_52dbm_complex.t ........... skipped: DBI::SQL::Nano is being used
t/zvg_53sqlengine_adv.t ......... skipped: Modifying driver state won't compute running behind Gofer
t/zvg_60preparse.t .............. ok
t/zvg_65transact.t .............. skipped: Transactions not supported by DBD::Gofer
t/zvg_70callbacks.t ............. ok
t/zvg_72childhandles.t .......... ok
t/zvg_73cachedkids.t ............ ok
t/zvg_80proxy.t ................. skipped: modules required for proxy are probably not installed (e.g., RPC/PlClient.pm)
t/zvg_85gofer.t ................. ok
t/zvg_86gofer_fail.t ............ skipped: Gofer DBI_AUTOPROXY
t/zvg_87gofer_cache.t ........... skipped: Gofer DBI_AUTOPROXY
t/zvg_90sql_type_cast.t ......... ok
t/zvg_91_store_warning.t ........ ok
t/zvn_48dbi_dbd_sqlengine.t ..... ok
t/zvn_49dbd_file.t .............. ok
t/zvn_50dbm_simple.t ............ ok
t/zvn_51dbm_file.t .............. ok
t/zvn_52dbm_complex.t ........... skipped: DBI::SQL::Nano is being used
t/zvn_85gofer.t ................. ok
t/zvp_01basics.t ................ # --- Perl 5.018002 on darwin-thread-multi-2level
t/zvp_01basics.t ................ ok
t/zvp_02dbidrv.t ................ ok
t/zvp_03handle.t ................ ok
t/zvp_04mods.t .................. ok
t/zvp_05concathash.t ............ ok
t/zvp_06attrs.t ................. ok
t/zvp_07kids.t .................. skipped: $h->{Kids} attribute not supported for DBI::PurePerl
t/zvp_08keeperr.t ............... ok
t/zvp_09trace.t ................. ok
t/zvp_10examp.t ................. ok
t/zvp_11fetch.t ................. ok
t/zvp_12quote.t ................. ok
t/zvp_13taint.t ................. skipped: Taint attributes not supported with DBI::PurePerl
t/zvp_14utf8.t .................. ok
t/zvp_15array.t ................. ok
t/zvp_16destroy.t ............... ok
t/zvp_19fhtrace.t ............... ok
t/zvp_20meta.t .................. ok
t/zvp_30subclass.t .............. ok
t/zvp_31methcache.t ............. ok
t/zvp_35thrclone.t .............. ok
t/zvp_40profile.t ............... skipped: profiling not supported for DBI::PurePerl
t/zvp_41prof_dump.t ............. skipped: profiling not supported for DBI::PurePerl
t/zvp_42prof_data.t ............. skipped: profiling not supported for DBI::PurePerl
t/zvp_43prof_env.t .............. skipped: profiling not supported for DBI::PurePerl
t/zvp_48dbi_dbd_sqlengine.t ..... ok
t/zvp_49dbd_file.t .............. ok
t/zvp_50dbm_simple.t ............ ok
t/zvp_51dbm_file.t .............. ok
t/zvp_52dbm_complex.t ........... skipped: DBI::SQL::Nano is being used
t/zvp_53sqlengine_adv.t ......... ok
t/zvp_60preparse.t .............. skipped: preparse not supported for DBI::PurePerl
t/zvp_65transact.t .............. ok
t/zvp_70callbacks.t ............. skipped: $h->{Callbacks} attribute not supported for DBI::PurePerl
t/zvp_72childhandles.t .......... ok
t/zvp_73cachedkids.t ............ ok
t/zvp_80proxy.t ................. skipped: modules required for proxy are probably not installed (e.g., RPC/PlClient.pm)
t/zvp_85gofer.t ................. ok
t/zvp_86gofer_fail.t ............ skipped: requires Callbacks which are not supported with PurePerl
t/zvp_87gofer_cache.t ........... ok
t/zvp_90sql_type_cast.t ......... ok
t/zvp_91_store_warning.t ........ ok
t/zvxgn_48dbi_dbd_sqlengine.t ... ok
t/zvxgn_49dbd_file.t ............ ok
t/zvxgn_50dbm_simple.t .......... ok
t/zvxgn_51dbm_file.t ............ ok
t/zvxgn_52dbm_complex.t ......... skipped: DBI::SQL::Nano is being used
t/zvxgn_85gofer.t ............... ok
t/zvxgnp_48dbi_dbd_sqlengine.t .. ok
t/zvxgnp_49dbd_file.t ........... ok
t/zvxgnp_50dbm_simple.t ......... ok
t/zvxgnp_51dbm_file.t ........... ok
t/zvxgnp_52dbm_complex.t ........ skipped: DBI::SQL::Nano is being used
t/zvxgnp_85gofer.t .............. ok
t/zvxgp_01basics.t .............. # --- Perl 5.018002 on darwin-thread-multi-2level
t/zvxgp_01basics.t .............. ok
t/zvxgp_02dbidrv.t .............. ok
t/zvxgp_03handle.t .............. ok
t/zvxgp_04mods.t ................ ok
t/zvxgp_05concathash.t .......... ok
t/zvxgp_06attrs.t ............... ok
t/zvxgp_07kids.t ................ skipped: $h->{Kids} attribute not supported for DBI::PurePerl
t/zvxgp_08keeperr.t ............. ok
t/zvxgp_09trace.t ............... ok
t/zvxgp_10examp.t ............... ok
t/zvxgp_11fetch.t ............... ok
t/zvxgp_12quote.t ............... ok
t/zvxgp_13taint.t ............... skipped: Taint attributes not supported with DBI::PurePerl
t/zvxgp_14utf8.t ................ ok
t/zvxgp_15array.t ............... ok
t/zvxgp_16destroy.t ............. ok
t/zvxgp_19fhtrace.t ............. ok
t/zvxgp_20meta.t ................ ok
t/zvxgp_30subclass.t ............ ok
t/zvxgp_31methcache.t ........... ok
t/zvxgp_35thrclone.t ............ ok
t/zvxgp_40profile.t ............. skipped: profiling not supported for DBI::PurePerl
t/zvxgp_41prof_dump.t ........... skipped: profiling not supported for DBI::PurePerl
t/zvxgp_42prof_data.t ........... skipped: profiling not supported for DBI::PurePerl
t/zvxgp_43prof_env.t ............ skipped: profiling not supported for DBI::PurePerl
t/zvxgp_48dbi_dbd_sqlengine.t ... ok
t/zvxgp_49dbd_file.t ............ ok
t/zvxgp_50dbm_simple.t .......... ok
t/zvxgp_51dbm_file.t ............ ok
t/zvxgp_52dbm_complex.t ......... skipped: DBI::SQL::Nano is being used
t/zvxgp_53sqlengine_adv.t ....... skipped: Modifying driver state won't compute running behind Gofer
t/zvxgp_60preparse.t ............ skipped: preparse not supported for DBI::PurePerl
t/zvxgp_65transact.t ............ skipped: Transactions not supported by DBD::Gofer
t/zvxgp_70callbacks.t ........... skipped: $h->{Callbacks} attribute not supported for DBI::PurePerl
t/zvxgp_72childhandles.t ........ ok
t/zvxgp_73cachedkids.t .......... ok
t/zvxgp_80proxy.t ............... skipped: modules required for proxy are probably not installed (e.g., RPC/PlClient.pm)
t/zvxgp_85gofer.t ............... ok
t/zvxgp_86gofer_fail.t .......... skipped: requires Callbacks which are not supported with PurePerl
t/zvxgp_87gofer_cache.t ......... skipped: Gofer DBI_AUTOPROXY
t/zvxgp_90sql_type_cast.t ....... ok
t/zvxgp_91_store_warning.t ...... ok
t/zvxnp_48dbi_dbd_sqlengine.t ... ok
t/zvxnp_49dbd_file.t ............ ok
t/zvxnp_50dbm_simple.t .......... ok
t/zvxnp_51dbm_file.t ............ ok
t/zvxnp_52dbm_complex.t ......... skipped: DBI::SQL::Nano is being used
t/zvxnp_85gofer.t ............... ok
All tests successful.
Files=194, Tests=10553, 99 wallclock secs ( 1.74 usr 0.56 sys + 80.15 cusr 9.49 csys = 91.94 CPU)
Result: PASS
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
test.pl
DBI test application $Revision$
Switch: DBI 1.636 by Tim Bunce, 1.636
Available Drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge
dbi:ExampleP:: testing 3 sets of 20 connections:
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
connect 20 and disconnect them, 3 times: 0.0016s / 60 = 0.0000s
Testing handle creation speed...
64516 NullP sth/s perl 5.018002 darwin-thread-multi-2level (gcc 4.2.1 -Os) 0.000016s
test.pl done
TIMB/DBI-1.636.tar.gz
/usr/bin/make test -- OK
Running make install
Manifying blib/man1/dbiproxy.1
Manifying blib/man1/dbilogstrip.1
Manifying blib/man1/dbiprof.1
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/Library/Perl/5.18/darwin-thread-multi-2level'
Do not have write permissions on '/Library/Perl/5.18/darwin-thread-multi-2level'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1.
make: *** [pure_site_install] Error 13
TIMB/DBI-1.636.tar.gz
/usr/bin/make install -- NOT OK
----
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.
Is there anyway of fixing this error so I can use perl support?
According to the line:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/Library/Perl/5.18/darwin-thread-multi-2level'
Do not have write permissions on '/Library/Perl/5.18/darwin-thread-multi-2level'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You don't have enough privilegies to install the DBI module. If you really want to install it into your OS you have to use sudo it isn't one of the best practices.
I would recommend you to use perlbrew, It's quite simple, easy and fast to use and has a lot of nice features and you don't have to worry if you broke up something or not.
Easy to install
Quicky install:
\curl -L https://install.perlbrew.pl | bash
or
sudo cpan App::perlbrew
perlbrew init
You can also install and switch between perl versions:
To install the latest stable release, and use it permanently:
perlbrew install perl-5.16.0
perlbrew switch perl-5.16.0
To play with the bleeding-edge version, but only in the current shell:
perlbrew install perl-blead
perlbrew use perl-blead
Related
When I installed okd4.5, running the openshift command prompts the error message as follows:
[root#bastion ~]# openshift-install --dir=/okdinstall/ wait-for bootstrap-complete --log-level=debug
DEBUG OpenShift Installer 4.5.0-0.okd-2020-10-15-235428
DEBUG Built from commit 63200c80c431b8dbaa06c0cc13282d819bd7e5f8
INFO Waiting up to 20m0s for the Kubernetes API at https://api.okd.test1.com:6443...
DEBUG Still waiting for the Kubernetes API: Get https://api.okd.test1.com:6443/version?timeout=32s: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kube-apiserver-lb-signer")
我的操作步骤如下:
52 hostnamectl set-hostname bastion
53 ssh-keygen -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa
54 eval "$(ssh-agent -s)"
55 ssh-add ~/.ssh/id_rsa
56 systemctl disable firewalld
57 systemctl stop firewalld
58 yum -y install wget vim etcd bind-utils
59 systemctl enable etcd --now
60 systemctl status etcd
61 wget https://github.com/coredns/coredns/releases/download/v1.6.9/coredns_1.6.9_linux_amd64.tgz
62 tar zxvf coredns_1.6.9_linux_amd64.tgz
63 mv coredns /usr/local/bin
64 useradd coredns -s /sbin/nologin
65 vim /etc/systemd/system/coredns.service
66 mkdir /etc/coredns
67 vi /etc/coredns/Corefile
68 systemctl enable coredns --now
69 systemctl status coredns
70 alias etcdctlv3='ETCDCTL_API=3 etcdctl'
71 etcdctlv3 put /skydns/com/test1/okd/api '{"host":"172.16.121.13", "ttl":60}'
72 etcdctlv3 put /skydns/com/test1/okd/api-int '{"host":"172.16.121.13", "ttl":60}'
73 etcdctlv3 put /skydns/com/test1/okd/registry '{"host":"172.16.121.13", "ttl":60}'
74 etcdctlv3 put /skydns/com/test1/okd/etcd-1 '{"host":"172.16.121.14", "ttl":60}'
75 etcdctlv3 put /skydns/com/test1/okd/etcd-2 '{"host":"172.16.121.15", "ttl":60}'
76 etcdctlv3 put /skydns/com/test1/okd/etcd-3 '{"host":"172.16.121.16", "ttl":60}'
77 etcdctlv3 put /skydns/com/test1/okd/_tcp/_etcd-server-ssl/x1 '{"host":"etcd-1.okd.test1.com", "ttl":60, "priority":0, "weight":10, "port":2380}'
78 etcdctlv3 put /skydns/com/test1/okd/_tcp/_etcd-server-ssl/x1 '{"host":"etcd-2.okd.test1.com", "ttl":60, "priority":0, "weight":10, "port":2380}'
79 etcdctlv3 put /skydns/com/test1/okd/_tcp/_etcd-server-ssl/x1 '{"host":"etcd-3.okd.test1.com", "ttl":60, "priority":0, "weight":10, "port":2380}'
80 etcdctlv3 put /skydns/com/test1/okd/bastion '{"host":"172.16.121.13", "ttl":60}'
81 etcdctlv3 put /skydns/com/test1/okd/bootstrap '{"host":"172.16.121.19", "ttl":60}'
82 etcdctlv3 put /skydns/com/test1/okd/master1 '{"host":"172.16.121.14", "ttl":60}'
83 etcdctlv3 put /skydns/com/test1/okd/master2 '{"host":"172.16.121.15", "ttl":60}'
84 etcdctlv3 put /skydns/com/test1/okd/master3 '{"host":"172.16.121.16", "ttl":60}'
85 etcdctlv3 put /skydns/com/test1/okd/worker1 '{"host":"172.16.121.17", "ttl":60}'
86 etcdctlv3 put /skydns/com/test1/okd/worker2 '{"host":"172.16.121.18", "ttl":60}'
87 dig +short apps.okd.test1.com #127.0.0.1
88 dig +short master2.okd.test1.com #127.0.0.1
89 cat /etc/resolv.conf
search okd.test1.com
nameserver 172.16.121.13
90 yum -y install haproxy
91 vim /etc/haproxy/haproxy.cfg
92 systemctl enable haproxy && systemctl restart haproxy
93 systemctl status haproxy
94 netstat -anput | grep 6443
95 yum -y install net-tools
96 netstat -anput | grep 6443
97 netstat -anput | grep 22623
98 mkdir -p /opt/registry/{auth,certs,data}
99 mkdir /data
100 cd /opt/registry/certs
101 openssl req -newkey rsa:4096 -nodes -sha256 -keyout ca.key -x509 -days 36500 -out ca.crt
102 openssl req -newkey rsa:4096 -nodes -sha256 -keyout registry.okd.test1.com.key -out registry.okd.test1.com.csr -days 36500
103 openssl x509 -req -days 36500 -in registry.okd.test1.com.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out registry.okd.test1.com.crt
104 echo -n 'admin:Harbor12345' | base64 -w0
105 vim /root/pull-secret.json
106 yum -y install httpd-tools yum-utils telnet httpd epel-release podman
107 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
108 yum -y install docker-ce docker-compose
109 systemctl start docker && systemctl enable docker
110 systemctl status docker
111 cd /opt
112 wget https://github.com/goharbor/harbor/releases/download/v2.0.1/harbor-offline-installer-v2.0.1.tgz
121 tar -zxvf harbor-offline-installer-v2.0.1.tgz && rm -rf harbor-offline-installer-v2.0.1.tgz && cd harbor/
122 mv harbor.yml.tmpl harbor.yml
123 vim harbor.yml
124 ./install.sh
125 mkdir -p /etc/docker/certs.d/registry.okd.test1.com
126 cp /opt/registry/certs/registry.okd.test1.com.crt
/etc/docker/certs.d/registry.okd.test1.com
127 cp /opt/registry/certs/ca.crt /etc/pki/ca-trust/source/anchors/
128 update-ca-trust extrat
129 systemctl restart docker
130 netstat -anput | grep docker
131 curl -u admin:Harbor12345 -k https://registry.okd.test1.com:18443/v2/_catalog
132 wget https://github.com/openshift/okd/releases/download/4.5.0-0.okd-2020-10-15-235428/openshift-client-linux-4.5.0-0.okd-2020-10-15-235428.tar.gz
133 ll
134 cd /root/
135 ll
136 wget https://github.com/openshift/okd/releases/download/4.5.0-0.okd-2020-10-15-235428/openshift-install-linux-4.5.0-0.okd-2020-10-15-235428.tar.gz
137 ll
138 tar -zxvf openshift-client-linux-4.5.0-0.okd-2020-10-15-235428.tar.gz
139 cp oc kubectl /usr/local/bin/
140 oc version
141 tar -zxvf openshift-install-linux-4.5.0-0.okd-2020-10-15-235428.tar.gz
142 cp openshift-install /usr/local/bin/
143 openshift-install version
144 export OCP_RELEASE=4.5.0-0.okd
145 export LOCAL_REGISTRY='registry.okd.test1.com:18443'
146 export LOCAL_REPOSITORY='openshift/okd'
147 export PRODUCT_REPO='openshift'
148 export LOCAL_SECRET_JSON='/root/pull-secret.json'
149 export RELEASE_NAME='okd'
150 export ARCHITECTURE="2020-10-15-235428"
152 oc adm -a ${LOCAL_SECRET_JSON} release mirror --from=quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_RELEASE}-${ARCHITECTURE} --to=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY} --to-release-image=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OCP_RELEASE}-${ARCHITECTURE}
209 cd /root/
210 vim install-config.yaml
211 mkdir /okdinstall/
213 cp install-config.yaml /okdinstall/
214 openshift-install create manifests --dir=/okdinstall
215 sed -i 's/mastersSchedulable: true/mastersSchedulable: False/'
/okdinstall/manifests/cluster-scheduler-02-config.yml
216 openshift-install create ignition-configs --dir=/okdinstall
217 mkdir /root/.kube/
218 cp /okdinstall/auth/kubeconfig ~/.kube/config
219 chmod -R 755 /okdinstall/*
220 mkdir /usr/share/nginx/html/ignition/
221 cp -rp /okdinstall/* /usr/share/nginx/html/ignition/
222 mkdir /usr/share/nginx/html/install/
223 openshift-install --dir=/okdinstall/ wait-for bootstrap-complete --log-level=debug
设计到的文件内容如下:
cat /root/pull-secret.json
{
"auths": {
"registry.okd.test1.com:18443": {
"auth": "YWRtaW46SGFyYm9yMTIzNDU=",
"email": ""
}
}
}
cat /root/install-config.yaml
apiVersion: v1
baseDomain: test1.com
compute:
- hyperthreading: Enabled
name: worker
replicas: 0
controlPlane:
hyperthreading: Enabled
name: master
replicas: 3
metadata:
name: okd
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
networkType: OpenShiftSDN
serviceNetwork:
- 172.30.0.0/16
platform:
none: {}
fips: false
sshKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC3EhKr+wP22gSg3yoahLDR2cNxHEfm59/uFc4XBFdROEXofS4pm3V3c3ug2dRCtaVI/Wb2wUKjvbJd3Cw8dHhD4cU6rIVBt2+P6GpOIslkFb59RjUdWhS7EVcFNg/5AJJc4gmg+Read1WmJQny36Ogpf8WfMXyCeIMB1w7cezIg/E1lJo0LonSWfj4vUUweqZzWhfBgiet6NxyRm6C8ahWMhoMvaVNd2JK4RtMxP2vdX9HpEjUQNFnPG0N4wcJztIKLjh5IUPMNrTwFe62zB6n3kx6ZycrZUQmRHJVss3QN566bxNu2qmbfryvktj2lGFon8pt08Fwe5gJcHNbLhKTmQZc1KEh9leKXiTFcE/omsA3fZC4K+u3Xt69NHBLVTaBA9t4/gETvU7knQO51ffXvS7ut61FfMObuU9e1E7Vzy4czyFNrv4yRIUv6tdj35zQd96hvNJeNPx4Owogbc/5tWhkc0fPgDZCn5v+DIh8yJZ2GL0nrCI1eS0eIHyWuqMY7PbrQRSp3bQLomEvlLB+Eg/lyv0nhVgbue6bgrWy6fN2ExEJHBn2rwZOq9j/DiU2xF+AdALQNeqVHd6GBo8Q/TC3w6TVlemLDnAyrf7JSQNUIVstRyYNkqN/3/is9ibPQqYckEIvDenonuBUe1Np7DH3qcSkjAFz3xdQ== root#bastion'
pullSecret: '{"auths":{"registry.okd.test1.com:18443": {"auth": "YWRtaW46SGFyYm9yMTIzNDU=","email": ""}}}'
imageContentSources:
- mirrors:
- registry.okd.test1.com:18443/openshift/okd
source: quay.io/openshift/okd
- mirrors:
- registry.okd.test1.com:18443/openshift/okd
source: quay.io/openshift/okd-content
# 密钥文件信息来自于 /etc/docker/certs.d/registry.okd.test1.com/registry.okd.test1.com.crt
additionalTrustBundle: |
-----BEGIN CERTIFICATE-----
MIIFejCCA2ICCQCIsY5LihXiSDANBgkqhkiG9w0BAQsFADB+MQswCQYDVQQGEwJD
TjELMAkGA1UECAwCQkoxCzAJBgNVBAcMAkJKMQ0wCwYDVQQKDARURVNUMQ0wCwYD
VQQLDARURVNUMRgwFgYDVQQDDA8qLm9rZC50ZXN0MS5jb20xHTAbBgkqhkiG9w0B
CQEWDnRlc3RAdGVzdDEuY29tMCAXDTIxMDgxMDExMDc0MloYDzIxMjEwNzE3MTEw
NzQyWjB+MQswCQYDVQQGEwJDTjELMAkGA1UECAwCQkoxCzAJBgNVBAcMAkJKMQ0w
CwYDVQQKDARURVNUMQ0wCwYDVQQLDARURVNUMRgwFgYDVQQDDA8qLm9rZC50ZXN0
MS5jb20xHTAbBgkqhkiG9w0BCQEWDnRlc3RAdGVzdDEuY29tMIICIjANBgkqhkiG
9w0BAQEFAAOCAg8AMIICCgKCAgEA2PpMgCdjfZd2ww+uYjxrN3Wbl5qxKWJYTtX9
uI0/37g1Bz09XSVB4zW3WHmqCBwr1ad6/S92vv0HHtnJDP+PcoP6FsnBagPxxwCC
bIF4svkwSG7bQkUZcFbQ+S3Tqo8cHBOeSW4fzFPYO7QKF3Bhmq1tqYO5cqPrlOdb
1+L31Etx+P6P7+/XBzr4CUckTsdQXoEIcKFTQfrn9NMAeSscFk5Qw76DPhj4tJbe
Rx+ebpwgQodrsr8C9qn8Ebj6n1oz5S/mer6CeNR4M2HTdoBqUP0eHbLAyBzrzXwK
0OTqn7+El5DyA86yY99ag8SLsNjHc1J4PYPLbNuk/UvathsLAWQZjeyq+Zyf4KQk
PvXi8wlKXik9eAAtL/fx3jNoAm57f0qdc7Z3+e8X4cr9wvNerC7IVV8OSRMsxlze
w5c0YqP3kex9UV3f4FpKBJEZI9k1Gcg911ffl5dj7wDunj2wzyzprhjWvdswkCux
5kJfPZhgoBUK0DRmoW7b9r00YsMYodI05MuEVG/KiRlfQn3/xa0NEAqxJbM+zbOJ
rJmQLV2mJQjh3FgIc99L0CFPaoaANPi1t3hYnFRiWxRaDhxnNUaCb6QUMp+ZphbX
eRYmZ2DqGB91pFliT8MSxlBqcTq+AgUE7IKa0Tu9QZxN9ve1DlXJQi+LIenC3iZs
7OMQKwUCAwEAATANBgkqhkiG9w0BAQsFAAOCAgEAZZ/8l4daDzyxwIALkoepjbKi
ozIp/Oz9HRvlVUM1rM37zceo3xumP8T1AWvr/z9tLei5/HMgqAbbegFx+Y0Rdwyt
DdHk4UFOcGBomFnA0CYXOywKIOo5qByOthBu0GF7quns4MTpPUN0sXkYDAoBRPLB
Wsan71DBAa6GN/kvu5eXN3SZeiAz4Ou3Yk43++Iy5NNWNjB37GNdtL9LRdtYGaVb
/kUiFdPL2S9gtex/EdWFqsZrN/0VNGRD8/bLQlavIFwYYz7zaMt7UxT7q7v2prkK
FF7GZiDJZb0NeHDLnyoP0yHuqefnKV7oV1aBqYh3Y6zk16S6DIl8WKfCgEaHSwB+
ESGxKU42NCWgTw8ollXHMjezT1C6LAzLGuMToJXVQzYhoacGLJKtkCcKwYV/df4z
/Z5s1ECphLLetR8JyByhDOzk48tZyXrMN3DvtIfVsbR5cRqZrW5KK6gRKTm1Stsq
TLB9wLtn/ytA9HaMijsudPB/7k/Q3Mm4G3WfnLlpQpc9oQeG/32dEq2FM3Ykp/YX
UQvTh6MEjj8XTHe6FT1yJNMqcQL/oct3bTRc8kegtzgELgpUGMGBnlFtIICBleVx
2/lzFrU7P08poKuZ+1loG4rZG9vxsWRX/MZ2AVi+c2jQ9qRwnD5as+YoUyFw42Xx
vOouHXd0lg7onR1v82M=
-----END CERTIFICATE-----
备注:我的系统是centos7.9
Been trying for hours to get mysql installed but it failed due to a conflict.
This is a brand newly installed CentOS 8 x64 (latest) and it's fully updated. There are no custom packages installed this is a minimal install.
This is on a relatively powerful dedicated server with nothing else on it.
I first ran into the issue trying to install CentOS Web Panel. That is the only thing I've done on this server after install and update. The failure of centos web panel was simply the same conflict I'm running into with mysql. Mysql failed because it says mariadb is installed. But even when I removed mariadb still it gave the same issue.
Same issue happens when I try to install mysql directly which is what this question is about. I am able to install mariadb with no problem though and even remove it as well. But still after installing and removing mariadb mysql still refuses due to nonexistent conflict.
# rpm -q centos-release
centos-release-8.0-0.1905.0.9.el8..x86_64
# yum update -y
Last metadata expiration check: 0:14:30 ago on Sat 23 Nov 2019 02:12:39 PM EST.
Dependencies resolved.
Nothing to do.
Complete!
Here is what happens when I try to install
# yum install mysql -y
CentOS Web Panel repo for Linux 7 - .x86_64 10 kB/s | 2.9 kB 00:00
CentOS-8 - AppStream3.1 kB/s | 4.3 kB 00:01
CentOS-8 - Base 2.9 kB/s | 3.9 kB 00:01
CentOS-8 - Extras 4.3 kB/s | 1.5 kB 00:00
Extra Packages for Enterprise Linux 8 - .x86_64 15 kB/s | 19 kB 00:01
MariaDB 2.6 kB/s | 2.9 kB 00:01
Dependencies resolved.
================================================================================
Package ArchVersion Repository Size
================================================================================
Installing:
mysql .x86_64 8.0.17-3.module_el8.0.0+181+899d6349 AppStream 11 M
Installing dependencies:
mysql-common.x86_64 8.0.17-3.module_el8.0.0+181+899d6349 AppStream 143 k
MariaDB-common .x86_64 10.1.43-1.el7.centos mariadb 68 k
Transaction Summary
================================================================================
Install 3 Packages
Total download size: 11 M
Installed size: 68 M
Downloading Packages:
(1/3): mysql-common-8.0.17-3.module_el8.0.0+181 1.3 MB/s | 143 kB 00:00
(2/3): MariaDB-common-10.1.43-1.el7.centos.x86_ 233 kB/s | 68 kB 00:00
(3/3): mysql-8.0.17-3.module_el8.0.0+181+899d63 9.8 MB/s | 11 MB 00:01
--------------------------------------------------------------------------------
Total 7.6 MB/s | 11 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/share/mysql/charsets/Index.xml conflicts between attempted installs of mysql-common-8.0.17-3.module_el8.0.0+181+899d6349..x86_64 and MariaDB-common-10.1.43-1.el7.centos..x86_64
file /usr/share/mysql/charsets/armscii8.xml ... (same)
file /usr/share/mysql/charsets/ascii.xml ...
file /usr/share/mysql/charsets/cp1250.xml ...
file /usr/share/mysql/charsets/cp1251.xml ...
file /usr/share/mysql/charsets/cp1256.xml ...
file /usr/share/mysql/charsets/cp1257.xml ...
file /usr/share/mysql/charsets/cp850.xml ...
file /usr/share/mysql/charsets/cp852.xml ...
file /usr/share/mysql/charsets/cp866.xml ...
file /usr/share/mysql/charsets/dec8.xml ...
file /usr/share/mysql/charsets/geostd8.xml ...
file /usr/share/mysql/charsets/greek.xml ...
file /usr/share/mysql/charsets/hebrew.xml ...
file /usr/share/mysql/charsets/hp8.xml ...
file /usr/share/mysql/charsets/keybcs2.xml ...
file /usr/share/mysql/charsets/koi8r.xml ...
file /usr/share/mysql/charsets/koi8u.xml ...
file /usr/share/mysql/charsets/latin1.xml ...
file /usr/share/mysql/charsets/latin2.xml ...
file /usr/share/mysql/charsets/latin5.xml ...
file /usr/share/mysql/charsets/latin7.xml ...
file /usr/share/mysql/charsets/macce.xml ...
file /usr/share/mysql/charsets/macroman.xml ...
file /usr/share/mysql/charsets/swe7.xml ...
Error Summary
-------------
Problem is that mariadb is not installed. I uninstalled it. Even tried rebooting server to no avail. yum package list does not show either mysql or mariadb to be installed.
# yum remove -y mariadb
No match for argument: mariadb
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
# rpm -e mariadb
error: package mariadb is not installed
# rpm -V mariadb
package mariadb is not installed
# yum remove mysql -y
No match for argument: mysql
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
# yum remove mysql-common
No match for argument: mysql-common
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
# package-cleanup --cleandupes
Last metadata expiration check: 0:07:50 ago on Sat 23 Nov 2019 02:12:39 PM EST.
Error: No duplicated packages found for removal.
# dnf clean packages
0 files removed
# yum list installed | grep mariadb
#
# yum list installed | grep mysql
#
as you see there's nothing there. Even rebooted. Tried installing again same error as above.
Here is my full package list:
~# yum list installed
Installed Packages
NetworkManager..x86_64
NetworkManager-libnm..x86_64
NetworkManager-team..x86_64
NetworkManager-tui..x86_64
PackageKit..x86_64
PackageKit-glib..x86_64
acl..x86_64
adcli..x86_64
apr..x86_64
apr-util..x86_64
at..x86_64
attr..x86_64
audit..x86_64
audit-libs..x86_64
authselect..x86_64
authselect-compat..x86_64
authselect-libs..x86_64
avahi-libs..x86_64
basesystem.noarch11-5.el8
bash..x86_64
bash-completion.noarch 1:2.7-5.el8
bc..x86_64
bind-export-libs..x86_64
bind-libs..x86_64
bind-libs-lite..x86_64
bind-license.noarch 32:9.11.4-17.P2.el8_0.1 #AppStream
bind-utils..x86_64
binutils..x86_64
biosdevname..x86_64
blktrace..x86_64
bpftool..x86_64
brotli..x86_64
bzip2..x86_64
bzip2-libs..x86_64
c-ares..x86_64
ca-certificates.noarch 2018.2.24-6.el8
cairo..x86_64
cairo-gobject..x86_64
centos-logos..x86_64
centos-release..x86_64
checkpolicy..x86_64
chkconfig..x86_64
chrony..x86_64
cockpit..x86_64
cockpit-bridge..x86_64
cockpit-packagekit.noarch184.1-1.el8
cockpit-system.noarch185.1-1.el8_0
cockpit-ws..x86_64
compat-openssl10..x86_64
coreutils..x86_64
coreutils-common..x86_64
cpio..x86_64
cracklib..x86_64
cracklib-dicts..x86_64
cronie..x86_64
cronie-anacron..x86_64
crontabs.noarc
crypto-policies.noarch
cryptsetup..x86_64
cryptsetup-libs..x86_64
cups-libs..x86_64
curl..x86_64
cwp-httpd..x86_64
cwp-suphp..x86_64
cyrus-sasl-gssapi..x86_64
cyrus-sasl-lib..x86_64
cyrus-sasl-plain..x86_64
dbus..x86_64
dbus-common.noarch 1:1.12.8-7.el8
dbus-daemon..x86_64
dbus-glib..x86_64
dbus-libs..x86_64
dbus-tools..x86_64
dejavu-fonts-common.noarch 2.35-6.el8
dejavu-sans-fonts.noarch 2.35-6.el8
desktop-file-utils..x86_64
device-mapper..x86_64
device-mapper-event..x86_64
device-mapper-event-libs..x86_64
device-mapper-libs..x86_64
device-mapper-persistent-data..x86_64
dhcp-client..x86_64
dhcp-common.noarch 12:4.3.6-30.el8
dhcp-libs..x86_64
diffutils..x86_64
dmidecode..x86_64
dnf.noarch
dnf-data.noarch
dnf-plugin-spacewalk.noarch
dnf-plugins-core.noarch
dnf-utils.noarch
dos2unix..x86_64
dosfstools..x86_64
dracut..x86_64
dracut-config-rescue..x86_64
dracut-network..x86_64
dracut-squash..x86_64
dwz..x86_64
e2fsprogs..x86_64
e2fsprogs-libs..x86_64
ed..x86_64
efi-srpm-macros.noarch 3-2.el8
elfutils-default-yama-scope.noarch 0.174-6.el8
elfutils-libelf..x86_64
elfutils-libs..x86_64
emacs-filesystem.noarch 1:26.1-5.el8
epel-release.noarch 8-7.el8 #epel
ethtool..x86_64
expat..x86_64
file..x86_64
file-libs..x86_64
filesystem..x86_64
findutils..x86_64
fipscheck..x86_64
fipscheck-lib..x86_64
firewalld.noarch
firewalld-filesystem.noarch
fontconfig..x86_64
fontpackages-filesystem.noarch
fprintd..x86_64
fprintd-pam..x86_64
freetype..x86_64
fuse-libs..x86_64
gawk..x86_64
gdbm..x86_64
gdbm-libs..x86_64
gdk-pixbuf2..x86_64
geolite2-city.noarch 20180605-1.el8
geolite2-country.noarch 20180605-1.el8
gettext..x86_64
gettext-libs..x86_64
ghc-srpm-macros.noarch 1.4.2-7.el8
glib-networking..x86_64
glib2..x86_64
glibc..x86_64
glibc-common..x86_64
glibc-langpack-en..x86_64
gmp..x86_64
gnupg2..x86_64
gnupg2-smime..x86_64
gnutls..x86_64
go-srpm-macros.noarch2-16.el8
gobject-introspection..x86_64
gpgme..x86_64
gpm-libs..x86_64
grep..x86_64
groff-base..x86_64
grub2-common.noarch
grub2-pc..x86_64
grub2-pc-modules.noarch
grub2-tools..x86_64
grub2-tools-efi..x86_64
grub2-tools-extra..x86_64
grub2-tools-minimal..x86_64
grubby..x86_64
gsettings-desktop-schemas..x86_64
gzip..x86_64
hardlink..x86_64
hdparm..x86_64
hostname..x86_64
hwdata.noarch0.314-8.0.el8
ima-evm-utils..x86_64
info..x86_64
initscripts..x86_64
insights-client.noarch 3.0.5-4.el8
ipcalc..x86_64
iproute..x86_64
iprutils..x86_64
ipset..x86_64
ipset-libs..x86_64
iptables..x86_64
iptables-ebtables..x86_64
iptables-libs..x86_64
iptstate..x86_64
iputils..x86_64
irqbalance..x86_64
iwl100-firmware.noarch
iwl1000-firmware.noarch
iwl105-firmware.noarch
iwl135-firmware.noarch
iwl2000-firmware.noarch 18.168.6.1-92.el8.1 #anaconda
iwl2030-firmware.noarch 18.168.6.1-92.el8.1 #anaconda
iwl3160-firmware.noarch 1:25.30.13.0-92.el8.1#anaconda
iwl3945-firmware.noarch 15.32.2.9-92.el8.1 #anaconda
iwl4965-firmware.noarch 228.61.2.24-92.el8.1 #anaconda
iwl5000-firmware.noarch 8.83.5.1_1-92.el8.1 #anaconda
iwl5150-firmware.noarch 8.24.2.2-92.el8.1
iwl6000-firmware.noarch 9.221.4.1-92.el8.1 #anaconda
iwl6000g2a-firmware.noarch 18.168.6.1-92.el8.1 #anaconda
iwl6050-firmware.noarch 41.28.5.1-92.el8.1 #anaconda
iwl7260-firmware.noarch 1:25.30.13.0-92.el8.1#anaconda
jansson..x86_64
json-c..x86_64
json-glib..x86_64
kbd..x86_64
kbd-legacy.noarch2.0.4-8.el8
kbd-misc.noarch 2.0.4-8.el8
kernel..x86_64
kernel..x86_64
kernel-core..x86_64
kernel-core..x86_64
kernel-modules..x86_64
kernel-modules..x86_64
kernel-tools..x86_64
kernel-tools-libs..x86_64
kexec-tools..x86_64
keyutils-libs..x86_64
kmod..x86_64
kmod-kvdo..x86_64
kmod-libs..x86_64
kpartx..x86_64
kpatch.noarch0.6.1-1.el8
krb5-libs..x86_64
langpacks-en.noarch 1.0-12.el8
ledmon..x86_64
less..x86_64
libX11..x86_64
libX11-common.noarch 1.6.7-1.el8
libXau..x86_64
libXext..x86_64
libXrender..x86_64
libacl..x86_64
libaio..x86_64
libappstream-glib..x86_64
libarchive..x86_64
libassuan..x86_64
libattr..x86_64
libbasicobjects..x86_64
libblkid..x86_64
libcap..x86_64
libcap-ng..x86_64
libcollection..x86_64
libcom_err..x86_64
libcomps..x86_64
libconfig..x86_64
libcroco..x86_64
libcurl..x86_64
libdaemon..x86_64
libdb..x86_64
libdb-utils..x86_64
libdhash..x86_64
libdnf..x86_64
libedit..x86_64
libestr..x86_64
libevent..x86_64
libfastjson..x86_64
libfdisk..x86_64
libffi..x86_64
libfprint..x86_64
libgcc..x86_64
libgcrypt..x86_64
libgomp..x86_64
libgpg-error..x86_64
libgudev..x86_64
libidn2..x86_64
libini_config..x86_64
libipa_hbac..x86_64
libkcapi..x86_64
libkcapi-hmaccalc..x86_64
libksba..x86_64
libldb..x86_64
libmaxminddb..x86_64
libmetalink..x86_64
libmnl..x86_64
libmodman..x86_64
libmodulemd1..x86_64
libmount..x86_64
libndp..x86_64
libnetfilter_conntrack..x86_64
libnfnetlink..x86_64
libnfsidmap..x86_64
libnftnl..x86_64
libnghttp2..x86_64
libnl3..x86_64
libnl3-cli..x86_64
libnsl2..x86_64
libpath_utils..x86_64
libpcap..x86_64
libpipeline..x86_64
libpkgconf..x86_64
libpng..x86_64
libpq..x86_64
libproxy..x86_64
libpsl..x86_64
libpwquality..x86_64
libref_array..x86_64
librelp..x86_64
librepo..x86_64
libreport-filesystem..x86_64
libseccomp..x86_64
libsecret..x86_64
libselinux..x86_64
libselinux-utils..x86_64
libsemanage..x86_64
libsepol..x86_64
libsigsegv..x86_64
libsmartcols..x86_64
libsmbclient..x86_64
libsolv..x86_64
libsoup..x86_64
libss..x86_64
libssh..x86_64
libsss_autofs..x86_64
libsss_certmap..x86_64
libsss_idmap..x86_64
libsss_nss_idmap..x86_64
libsss_sudo..x86_64
libstdc++..x86_64
libstemmer..x86_64
libstoragemgmt..x86_64
libsysfs..x86_64
libtalloc..x86_64
libtasn1..x86_64
libtdb..x86_64
libteam..x86_64
libtevent..x86_64
libtirpc..x86_64
libunistring..x86_64
libusbx..x86_64
libuser..x86_64
libutempter..x86_64
libuuid..x86_64
libverto..x86_64
libwbclient..x86_64
libxcb..x86_64
libxcrypt..x86_64
libxkbcommon..x86_64
libxml2..x86_64
libyaml..x86_64
linux-firmware.noarch20190111-92.gitd9fb2ee6.el8 #anaconda
logrotate..x86_64
lshw..x86_64
lsof..x86_64
lsscsi..x86_64
lua-libs..x86_64
lvm2..x86_64
lvm2-libs..x86_64
lz4-libs..x86_64
lzo..x86_64
mailcap.noarch 2.1.48-3.el8
make..x86_64
man-db..x86_64
man-pages..x86_64
mcelog..x86_64
mdadm..x86_64
microcode_ctl..x86_64
mlocate..x86_64
mozjs52..x86_64
mpfr..x86_64
mtr..x86_64
nano..x86_64
ncurses..x86_64
ncurses-base.noarch 6.1-7.20180224.el8 #anaconda
ncurses-libs..x86_64
net-tools..x86_64
nettle..x86_64
newt..x86_64
nftables..x86_64
nmap-ncat..x86_64
npth..x86_64
nspr..x86_64
nss..x86_64
nss-softokn..x86_64
nss-softokn-freebl..x86_64
nss-sysinit..x86_64
nss-util..x86_64
numactl-libs..x86_64
ocaml-srpm-macros.noarch 5-4.el8
openblas-srpm-macros.noarch 2-2.el8
openldap..x86_64
openssh..x86_64
openssh-clients..x86_64
openssh-server..x86_64
openssl..x86_64
openssl-libs..x86_64
openssl-pkcs11..x86_64
os-prober..x86_64
p11-kit..x86_64
p11-kit-trust..x86_64
p7zip..x86_64
p7zip-plugins..x86_64
pam..x86_64
parted..x86_64
passwd..x86_64
pciutils..x86_64
pciutils-libs..x86_64
pcre..x86_64
pcre2..x86_64
perl..x86_64
perl-Algorithm-Diff.noarch 1.1903-9.el8
perl-Archive-Tar.noarch 2.30-1.el8
perl-Archive-Zip.noarch 1.60-3.el8
perl-Attribute-Handlers.noarch 0.99-416.el8
perl-B-Debug.noarch 1.26-2.el8
perl-CPAN.noarch 2.18-397.el8
perl-CPAN-Meta.noarch2.150010-396.el8
perl-CPAN-Meta-Requirements.noarch 2.140-396.el8
perl-CPAN-Meta-YAML.noarch 0.018-397.el8
perl-Carp.noarch 1.42-396.el8
perl-Compress-Bzip2..x86_64
perl-Compress-Raw-Bzip2..x86_64
perl-Compress-Raw-Zlib..x86_64
perl-Config-Perl-V.noarch0.30-1.el8
perl-DB_File..x86_64
perl-Data-Dumper..x86_64
perl-Data-OptList.noarch 0.110-6.el8
perl-Data-Section.noarch 0.200007-3.el8
perl-Devel-PPPort..x86_64
perl-Devel-Peek..x86_64
perl-Devel-SelfStubber.noarch1.06-416.el8
perl-Devel-Size..x86_64
perl-Digest.noarch 1.17-395.el8
perl-Digest-MD5..x86_64
perl-Digest-SHA..x86_64
perl-Encode..x86_64
perl-Encode-Locale.noarch1.05-9.el8
perl-Encode-devel..x86_64
perl-Env.noarch 1.04-395.el8
perl-Errno..x86_64
perl-Exporter.noarch 5.72-396.el8
perl-ExtUtils-CBuilder.noarch1:0.280230-2.el8
perl-ExtUtils-Command.noarch 1:7.34-1.el8
perl-ExtUtils-Embed.noarch 1.34-416.el8
perl-ExtUtils-Install.noarch 2.14-4.el8
perl-ExtUtils-MM-Utils.noarch1:7.34-1.el8
perl-ExtUtils-MakeMaker.noarch 1:7.34-1.el8
perl-ExtUtils-Manifest.noarch1.70-395.el8
perl-ExtUtils-Miniperl.noarch1.06-416.el8
perl-ExtUtils-ParseXS.noarch 1:3.35-2.el8
perl-File-Fetch.noarch 0.56-2.el8
perl-File-HomeDir.noarch 1.002-4.el8
perl-File-Path.noarch2.15-2.el8
perl-File-Temp.noarch0.230.600-1.el8
perl-File-Which.noarch 1.22-2.el8
perl-Filter..x86_64
perl-Filter-Simple.noarch0.94-2.el8
perl-Getopt-Long.noarch 1:2.50-4.el8
perl-HTTP-Tiny.noarch0.074-1.el8
perl-IO..x86_64
perl-IO-Compress.noarch 2.081-1.el8
perl-IO-Socket-IP.noarch 0.39-5.el8
perl-IO-Socket-SSL.noarch2.060-2.el8
perl-IO-Zlib.noarch 1:1.10-416.el8
perl-IPC-Cmd.noarch 2:1.02-1.el8
perl-IPC-SysV..x86_64
perl-IPC-System-Simple.noarch1.25-17.el8
perl-JSON-PP.noarch 1:2.97.001-3.el8
perl-Locale-Codes.noarch 3.57-1.el8
perl-Locale-Maketext.noarch 1.28-396.el8
perl-Locale-Maketext-Simple.noarch 1:0.21-416.el8
perl-MIME-Base64..x86_64
perl-MRO-Compat.noarch 0.13-4.el8
perl-Math-BigInt.noarch 1:1.9998.11-5.el8
perl-Math-BigInt-FastCalc..x86_64
perl-Math-BigRat.noarch 0.2614-1.el8
perl-Math-Complex.noarch 1.59-416.el8
perl-Memoize.noarch 1.03-416.el8
perl-Module-Build.noarch 2:0.42.24-5.el8
perl-Module-CoreList.noarch 1:5.20181130-1.el8
perl-Module-CoreList-tools.noarch1:5.20181130-1.el8
perl-Module-Load.noarch 1:0.32-395.el8
perl-Module-Load-Conditional.noarch 0.68-395.el8
perl-Module-Loaded.noarch1:0.08-416.el8
perl-Module-Metadata.noarch 1.000033-395.el8
perl-Mozilla-CA.noarch 20160104-7.el8
perl-Net-Ping.noarch 2.55-416.el8
perl-Net-SSLeay..x86_64
perl-Package-Generator.noarch1.106-11.el8
perl-Params-Check.noarch 1:0.38-395.el8
perl-Params-Util..x86_64
perl-PathTools..x86_64
perl-Perl-OSType.noarch 1.010-396.el8
perl-PerlIO-via-QuotedPrint.noarch 0.08-395.el8
perl-Pod-Checker.noarch 4:1.73-395.el8
perl-Pod-Escapes.noarch 1:1.07-395.el8
perl-Pod-Html.noarch 1.22.02-416.el8
perl-Pod-Parser.noarch 1.63-396.el8
perl-Pod-Perldoc.noarch 3.28-396.el8
perl-Pod-Simple.noarch 1:3.35-395.el8
perl-Pod-Usage.noarch4:1.69-395.el8
perl-Scalar-List-Utils..x86_64
perl-SelfLoader.noarch 1.23-416.el8
perl-Socket..x86_64
perl-Software-License.noarch 0.103013-2.el8
perl-Storable..x86_64
perl-Sub-Exporter.noarch 0.987-15.el8
perl-Sub-Install.noarch 0.928-14.el8
perl-Sys-Syslog..x86_64
perl-Term-ANSIColor.noarch 4.06-396.el8
perl-Term-Cap.noarch 1.17-395.el8
perl-TermReadKey..x86_64
perl-Test.noarch 1.30-416.el8
perl-Test-Harness.noarch 1:3.42-1.el8
perl-Test-Simple.noarch 1:1.302135-1.el8
perl-Text-Balanced.noarch2.03-395.el8
perl-Text-Diff.noarch1.45-2.el8
perl-Text-Glob.noarch0.11-4.el8
perl-Text-ParseWords.noarch 3.30-395.el8
perl-Text-Tabs+Wrap.noarch 2013.0523-395.el8
perl-Text-Template.noarch1.51-1.el8
perl-Thread-Queue.noarch 3.13-1.el8
perl-Time-HiRes..x86_64
perl-Time-Local.noarch 1:1.280-1.el8
perl-Time-Piece..x86_64
perl-URI.noarch 1.73-3.el8
perl-Unicode-Collate..x86_64
perl-Unicode-Normalize..x86_64
perl-autodie.noarch 2.29-396.el8
perl-bignum.noarch 0.49-2.el8
perl-constant.noarch 1.33-396.el8
perl-devel..x86_64
perl-encoding..x86_64
perl-experimental.noarch 0.019-2.el8
perl-inc-latest.noarch 2:0.500-9.el8
perl-interpreter..x86_64
perl-libnet.noarch 3.11-3.el8
perl-libnetcfg.noarch4:5.26.3-416.el8
perl-libs..x86_64
perl-local-lib.noarch2.000024-2.el8
perl-macros..x86_64
perl-open.noarch 1.11-416.el8
perl-parent.noarch 1:0.237-1.el8
perl-perlfaq.noarch 5.20180605-1.el8
perl-podlators.noarch4.11-1.el8
perl-srpm-macros.noarch 1-25.el8
perl-threads..x86_64
perl-threads-shared..x86_64
perl-utils.noarch5.26.3-416.el8
perl-version..x86_64
pigz..x86_64
pinentry..x86_64
pinfo..x86_64
pixman..x86_64
pkgconf..x86_64
pkgconf-m4.noarch1.4.2-1.el8
pkgconf-pkg-config..x86_64
platform-python..x86_64
platform-python-pip.noarch 9.0.3-13.el8
platform-python-setuptools.noarch39.2.0-4.el8
plymouth..x86_64
plymouth-core-libs..x86_64
plymouth-scripts..x86_64
policycoreutils..x86_64
policycoreutils-python-utils.noarch 2.8-16.1.el8
polkit..x86_64
polkit-libs..x86_64
polkit-pkla-compat..x86_64
popt..x86_64
prefixdevname..x86_64
procps-ng..x86_64
psacct..x86_64
publicsuffix-list-dafsa.noarch 20180723-1.el8
python-srpm-macros.noarch3-37.el8
python3-asn1crypto.noarch0.24.0-3.el8
python3-audit..x86_64
python3-bind.noarch 32:9.11.4-17.P2.el8_0.1 #AppStream
python3-cairo..x86_64
python3-cffi..x86_64
python3-chardet.noarch 3.0.4-7.el8
python3-configobj.noarch 5.0.6-11.el8
python3-cryptography..x86_64
python3-dateutil.noarch 1:2.6.1-6.el8
python3-dbus..x86_64
python3-decorator.noarch 4.2.1-2.el8
python3-dmidecode..x86_64
python3-dnf.noarch 4.0.9.2-5.el8
python3-dnf-plugin-spacewalk.noarch 2.8.5-11.module_el8.0.0+180+337688dc
python3-dnf-plugins-core.noarch 4.0.2.2-3.el8
python3-firewall.noarch 0.6.3-7.el8
python3-gobject..x86_64
python3-gobject-base..x86_64
python3-gpg..x86_64
python3-hawkey..x86_64
python3-hwdata.noarch2.3.6-3.el8
python3-idna.noarch 2.5-5.el8
python3-iniparse.noarch 0.4-31.el8
python3-libcomps..x86_64
python3-libdnf..x86_64
python3-librepo..x86_64
python3-libs..x86_64
python3-libselinux..x86_64
python3-libsemanage..x86_64
python3-libstoragemgmt.noarch1.6.2-9.el8
python3-libstoragemgmt-clibs..x86_64
python3-libxml2..x86_64
python3-linux-procfs.noarch 0.6-6.el8
python3-magic.noarch 5.33-8.el8
python3-netifaces..x86_64
python3-newt..x86_64
python3-perf..x86_64
python3-ply.noarch 3.9-7.el8
python3-policycoreutils.noarch 2.8-16.1.el8
python3-pyOpenSSL.noarch 18.0.0-1.el8
python3-pycparser.noarch 2.14-14.el8
python3-pyparsing.noarch 2.1.10-7.el8
python3-pysocks.noarch 1.6.8-3.el8
python3-pyudev.noarch0.21.0-7.el8
python3-pyyaml..x86_64
python3-requests.noarch 2.20.0-1.el8
python3-rhn-client-tools..x86_64
python3-rhnlib.noarch2.8.6-8.module_el8.0.0+180+337688dc
python3-rpm..x86_64
python3-rpm-macros.noarch3-37.el8
python3-schedutils..x86_64
python3-setools..x86_64
python3-six.noarch 1.11.0-8.el8
python3-slip.noarch 0.6.4-11.el8
python3-slip-dbus.noarch 0.6.4-11.el8
python3-sssdconfig.noarch2.0.0-43.el8_0.3
python3-syspurpose..x86_64
python3-systemd..x86_64
python3-unbound..x86_64
python3-urllib3.noarch 1.23-5.el8
qt5-srpm-macros.noarch 5.11.1-2.el8
quota..x86_64
quota-nls.noarch 1:4.04-10.el8
readline..x86_64
realmd..x86_64
redhat-rpm-config.noarch 116-1.el8.0.1
rhn-client-tools..x86_64
rng-tools..x86_64
rootfiles.noarch 8.1-22.el8
rpm..x86_64
rpm-build-libs..x86_64
rpm-libs..x86_64
rpm-plugin-selinux..x86_64
rpm-plugin-systemd-inhibit..x86_64
rsync..x86_64
rsyslog..x86_64
rsyslog-gnutls..x86_64
rsyslog-gssapi..x86_64
rsyslog-relp..x86_64
rust-srpm-macros.noarch 5-2.el8
samba-client-libs..x86_64
samba-common.noarch 4.9.1-8.el8
samba-common-libs..x86_64
screen..x86_64
sed..x86_64
selinux-policy.noarch3.14.1-61.el8_0.2
selinux-policy-targeted.noarch 3.14.1-61.el8_0.2
setroubleshoot-plugins.noarch3.3.10-1.el8
setroubleshoot-server..x86_64
setup.noarch 2.12.2-2.el8
sg3_utils..x86_64
sg3_utils-libs..x86_64
shadow-utils..x86_64
shared-mime-info..x86_64
slang..x86_64
smartmontools..x86_64
snappy..x86_64
sos.noarch 3.6-10.el8_0.3
sqlite..x86_64
sqlite-libs..x86_64
squashfs-tools..x86_64
sscg..x86_64
sssd..x86_64
sssd-ad..x86_64
sssd-client..x86_64
sssd-common..x86_64
sssd-common-pac..x86_64
sssd-ipa..x86_64
sssd-kcm..x86_64
sssd-krb5..x86_64
sssd-krb5-common..x86_64
sssd-ldap..x86_64
sssd-nfs-idmap..x86_64
sssd-proxy..x86_64
strace..x86_64
sudo..x86_64
symlinks..x86_64
systemd..x86_64
systemd-libs..x86_64
systemd-pam..x86_64
systemd-udev..x86_64
systemtap-sdt-devel..x86_64
tar..x86_64
tcpdump..x86_64
teamd..x86_64
time..x86_64
timedatex..x86_64
tree..x86_64
trousers..x86_64
trousers-lib..x86_64
tuned.noarch 2.10.0-15.el8
tzdata.noarch2019a-1.el8
unbound-libs..x86_64
unzip..x86_64
usbutils..x86_64
util-linux..x86_64
util-linux-user..x86_64
vdo..x86_64
vim-common..x86_64
vim-enhanced..x86_64
vim-filesystem.noarch2:8.0.1763-10.el8
vim-minimal..x86_64
virt-what..x86_64
wget..x86_64
which..x86_64
words.noarch 3.0-28.el8
xdg-utils.noarch 1.1.2-5.el8
xfsdump..x86_64
xfsprogs..x86_64
xkeyboard-config.noarch 2.24-3.el8
xz..x86_64
xz-libs..x86_64
yum.noarch 4.0.9.2-5.el8
zip..x86_64
zlib..x86_64
Additionally mariadb-libs is NOT installed.
# yum remove mariadb-libs -y
No match for argument: mariadb-libs
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
So removing maria-libs is not the solution unlike another question which proposes that.
Also tried to remove any extraneous files/folders.
rm -f /var/log/mariadb
rm -f /var/log/mariadb/mariadb.log.rpmsave
rm -rf /var/lib/mysql
rm -rf /usr/lib64/mysql
rm -rf /usr/share/mysql
No luck. Same error like it exists even though it does not exist and it is not installed.
Last attempt: trying to install with mariadb reinstalled also fails
Lastly, I tried one more thing, which is to, after doing all this, then trying to install mariadb and then try installing mysql,
~# yum install mariadb -y
Last metadata expiration check: 0:02:02 ago on Sat 23 Nov 2019 02:51:37 PM EST.
Dependencies resolved.
...
Installed:
mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
mariadb-common-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
mariadb-connector-c-3.0.7-1.el8.x86_64
MariaDB-common-10.1.43-1.el7.centos.x86_64
Complete!
And mariadb installs fine, but mysql still doesn't install. It gives a different error, but this is because mariadb is installed in this case. If I remove mariadb again, it gives the original error again like above.
# yum install mysql -y
Last metadata expiration check: 0:02:18 ago on Sat 23 Nov 2019 02:51:37 PM EST.
Error:
Problem: problem with installed package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64 conflicts with mysql provided by mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64
- package mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64 conflicts with mariadb provided by mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- conflicting requests
- package MariaDB-client-10.1.40-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.41-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.43-1.el7.centos.x86_64 is excluded
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
#
I also tried the --nobest flag but that does nothing, and I tried the --skip-broken flag but then it installs nothing either since it thinks it's broken.
I also tried installing mysql-server but no luck on that either.
# yum install mysql-server
Last metadata expiration check: 0:04:49 ago on Sat 23 Nov 2019 02:51:37 PM EST.
Error:
Problem: problem with installed package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64 conflicts with mysql provided by mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64
- package mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64 conflicts with mariadb provided by mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- package mysql-server-8.0.17-3.module_el8.0.0+181+899d6349.x86_64 requires mysql(x86-64), but none of the providers can be installed
- conflicting requests
- package mysql-8.0.13-1.module_el8.0.0+41+ca30bab6.x86_64 is excluded
- package MariaDB-client-10.1.40-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.41-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.43-1.el7.centos.x86_64 is excluded
#
Please help me solve this issue, thank you.
Try install mysql-server instead using: yum install mysql-server
I suspect you are suffering from the issue caused by MariaDB bug for InnoDB fails to start when fts table has FK relation as reported here: MDEV-20987
For quick relief from this problem, the only way to fix this issue is by downgrading the installation. Use following command to downgrade.
yum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel
NOTE: Officially MariaDB has fixed the issue in the following unpublished versions:
10.1.43 [ 23703 ]
10.2.29 [ 23911 ]
10.3.20 [ 23909 ]
10.4.10 [ 23907 ]
Can't install DBD::mysql under macOS Catalina 10.15.1. Mysql 8.0.18 and openssl 1.0.2t are installed through brew.
Here is the module installation log:
cpan[1]> install DBD::mysql
..........
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/local/Cellar/mysql/8.0.18_1/include/mysql
embedded (guessed ) =
ldflags (guessed ) =
libs (mysql_config) = -L/usr/local/Cellar/mysql/8.0.18_1/lib -L/usr/local/opt/openssl/lib -lmysqlclient -lssl -lcrypto
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
nossl (default ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testport (default ) =
testsocket (default ) =
testuser (guessed ) = dmitry
To change these settings, see 'perl Makefile.PL --help' and
'perldoc DBD::mysql::INSTALL'.
Checking if libs are available for compiling...
Looks good.
Checking if your kit is complete...
Looks good
Using DBI 1.631 (for perl 5.018004 on darwin-thread-multi-2level) installed in /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::mysql
Wide character in print at /System/Library/Perl/5.18/ExtUtils/MakeMaker.pm line 1034.
Wide character in print at /System/Library/Perl/5.18/ExtUtils/MakeMaker.pm line 1034.
Writing MYMETA.yml and MYMETA.json
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cc -c -I/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI -I/usr/local/Cellar/mysql/8.0.18_1/include/mysql -DDBD_MYSQL_WITH_SSL -g -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION=\"4.050\" -DXS_VERSION=\"4.050\" -iwithsysroot "/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" dbdimp.c
In file included from dbdimp.c:15:
./dbdimp.h:20:10: fatal error: 'DBIXS.h' file not found
#include <DBIXS.h> /* installed by the DBI module */
^~~~~~~~~
1 error generated.
make: *** [dbdimp.o] Error 1
DVEEDEN/DBD-mysql-4.050.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
DVEEDEN/DBD-mysql-4.050.tar.gz : make NO
cpan[2]>
It seems the compiler could not find the DBIXS.h file. find found this file in the system:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/DBIXS.h
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/DBIXS.h
/System/Volumes/Data/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/DBIXS.h
/System/Volumes/Data/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/DBIXS.h
/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/DBIXS.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/DBIXS.h
How to include this header file during compilation?
UPDATE
My searches led me to build the package using the standard path where there are no header files
/System/Library/Perl/5.18/darwin-thread-multi-2level
And you must use the path
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level
But here's how to specify it? I encountered the same problem when installing Mac::SystemDirectory
/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/EXTERN.h -
file not found
Perl information:
perl -V
Summary of my perl5 (revision 5 version 18 subversion 4) configuration:
Platform:
osname=darwin, osvers=19.0, archname=darwin-thread-multi-2level
uname='darwin osx391.sd.apple.com 19.0 darwin kernel version 18.0.0: tue jul 9 11:12:08 pdt 2019; root:xnu-4903.201.2.100.7~1release_x86_64 x86_64 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=cc'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags =' -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector',
optimize='-Os',
cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector'
ccversion='', gccversion='4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.32.4) (-macos10.15-objc-selector-opts)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector'
libpth=/usr/lib /usr/local/lib
libs=
perllibs=
libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Locally applied patches:
/Library/Perl/Updates/<version> comes before system perl directories
installprivlib and installarchlib points to the Updates directory
Built under darwin
Compiled at Aug 23 2019 16:44:31
#INC:
/Library/Perl/5.18/darwin-thread-multi-2level
/Library/Perl/5.18
/Network/Library/Perl/5.18/darwin-thread-multi-2level
/Network/Library/Perl/5.18
/Library/Perl/Updates/5.18.4/darwin-thread-multi-2level
/Library/Perl/Updates/5.18.4
/System/Library/Perl/5.18/darwin-thread-multi-2level
/System/Library/Perl/5.18
/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.18
.
The missing EXTERN.h file you find here:
$ find /Library/Developer/CommandLineTools -name EXTERN.h
A detailed instructions you find here:
DBD::mysql installation on Catalina/Big Sur fail with 'EXTERN.h' file not found?
I want use corosync+pacemaker+zabbix to achieve high availability. Follow is my config
crm(live)configure# show
node zabbix1 \
attributes standby="off" timeout="60"
node zabbix2 \
attributes standby="off"
primitive httpd lsb:httpd \
op monitor interval="10s"
primitive vip ocf:heartbeat:IPaddr \
params ip="192.168.56.110" nic="eth0" cidr_netmask="24" \
op monitor interval="10s"
primitive zabbix-ha lsb:zabbix_server \
op monitor interval="30s" timeout="20s" \
op start interval="0s" timeout="40s" \
op stop interval="0s" timeout="60s"
group webservice vip httpd zabbix-ha
property $id="cib-bootstrap-options" \
dc-version="1.1.8-7.el6-394e906" \
cluster-infrastructure="classic openais (with plugin)" \
expected-quorum-votes="2" \
stonith-enabled="false" \
last-lrm-refresh="1377489711" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
and my crm_mon status is:
Last updated: Mon Aug 26 18:52:48 2013
Last change: Mon Aug 26 18:52:33 2013 via cibadmin on zabbix1
Stack: classic openais (with plugin)
Current DC: zabbix1 - partition with quorum
Version: 1.1.8-7.el6-394e906
2 Nodes configured, 2 expected votes
3 Resources configured.
Node zabbix1: online
httpd (lsb:httpd): Started
vip (ocf::heartbeat:IPaddr): Started
zabbix-ha (lsb:zabbix_server): Started
Node zabbix2: online
now i stop zabbix-ha service on the zabbix1, I wait for 300s, pacemaker can't start my zabbix-ha service:
[root#zabbix1 tmp]# ps -ef|grep zabbix
root 13287 31252 0 18:59 pts/2 00:00:00 grep zabbix
and my zabbix-ha script is
i can use crm resource stop/start zabbix-ha to stop/start my zabbix-ha.
I'm not use zabbix default script(address is zabbix-2.0.6/misc/init.d/fedora/core/zabbix_serve),I create lsb script by myself.Follow is my script for zabbix_server(i put it in the /etc/init.d)
#!/bin/bash
#
# zabbix: Control the zabbix Daemon
#
# author: Denglei
#
# blog: http://dl528888.blog.51cto.com/
# description: This is a init.d script for zabbix. Tested on CentOS6. \
# Change DAEMON and PIDFILE if neccessary.
#
#Location of zabbix binary. Change path as neccessary
DAEMON=/usr/local/zabbix/sbin/zabbix_server
NAME=`basename $DAEMON`
#Pid file of zabbix, should be matched with pid directive in nginx config file.
PIDFILE=/tmp/$NAME.pid
#this file location
SCRIPTNAME=/etc/init.d/$NAME
#only run if binary can be found
test -x $DAEMON || exit 0
RETVAL=0
start() {
echo $"Starting $NAME"
$DAEMON
RETVAL=0
}
stop() {
echo $"Graceful stopping $NAME"
[ -s "$PIDFILE" ] && kill -QUIT `cat $PIDFILE`
RETVAL=0
}
forcestop() {
echo $"Quick stopping $NAME"
[ -s "$PIDFILE" ] && kill -TERM `cat $PIDFILE`
RETVAL=$?
}
reload() {
echo $"Graceful reloading $NAME configuration"
[ -s "$PIDFILE" ] && kill -HUP `cat $PIDFILE`
RETVAL=$?
}
status() {
if [ -s $PIDFILE ]; then
echo $"$NAME is running."
RETVAL=0
else
echo $"$NAME stopped."
RETVAL=3
fi
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
force-stop)
forcestop
;;
restart)
stop
start
;;
reload)
reload
;;
status)
status
;;
*)
echo $"Usage: $0 {start|stop|force-stop|restart|reload|status}"
exit 1
esac
exit $RETVAL
</pre>
When I say sudo /etc/init.d/mysql restart on Ubuntu 8.04.2 sometimes there remains a mysql_safe process eating 99% of cpu. Making the machine practically unusable.
Is there a better way to restart mysql? I thought about writing a script:
sudo /etc/init.d/mysql stop
sleep 10
sudo killall mysql_safe
sudo /etc/init.d/mysql start
But this would be a evil workaround. (And the script is just a quick shot)
I googled and found that mysql_safe is a wrapper script which starts mysqld, and makes sure it gets restarted if it should die. So there should be a better way to restart the thing.
I googled that this is a common problem in this ubuntu version. Is Debian / Ubuntu doing it wrong at this point? The /etc/init.d script looks quite sophisticated, and it deals with mysql_safe also, but my skills are not good enough to understand it fully. But this would be the best place to improve. This is a paste of the version on my machine (which is untouched):
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: mysql
# Required-Start: $remote_fs $syslog mysql-ndb
# Required-Stop: $remote_fs $syslog mysql-ndb
# Should-Start: $network $named $time
# Should-Stop: $network $named $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the mysql database server daemon
# Description: Controls the main MySQL database server daemon "mysqld"
# and its wrapper script "mysqld_safe".
### END INIT INFO
#
set -e
set -u
${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
test -x /usr/sbin/mysqld || exit 0
. /lib/lsb/init-functions
SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
CONF=/etc/mysql/my.cnf
MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
# priority can be overriden and "-s" adds output to stderr
ERR_LOGGER="logger -p daemon.err -t /etc/init.d/mysql -i"
# Safeguard (relative paths, core dumps..)
cd /
umask 077
# mysqladmin likes to read /root/.my.cnf. This is usually not what I want
# as many admins e.g. only store a password without a username there and
# so break my scripts.
export HOME=/etc/mysql/
## Fetch a particular option from mysql's invocation.
#
# Usage: void mysqld_get_param option
mysqld_get_param() {
/usr/sbin/mysqld --print-defaults \
| tr " " "\n" \
| grep -- "--$1" \
| tail -n 1 \
| cut -d= -f2
}
## Do some sanity checks before even trying to start mysqld.
sanity_checks() {
# check for config file
if [ ! -r /etc/mysql/my.cnf ]; then
log_warning_msg "$0: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz"
echo "WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz" | $ERR_LOGGER
fi
# check for diskspace shortage
datadir=`mysqld_get_param datadir`
if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4>4096) }'; then
log_failure_msg "$0: ERROR: The partition with $datadir is too full!"
echo "ERROR: The partition with $datadir is too full!" | $ERR_LOGGER
exit 1
fi
}
## Checks if there is a server running and if so if it is accessible.
#
# check_alive insists on a pingable server
# check_dead also fails if there is a lost mysqld in the process list
#
# Usage: boolean mysqld_status [check_alive|check_dead] [warn|nowarn]
mysqld_status () {
ping_output=`$MYADMIN ping 2>&1`; ping_alive=$(( ! $? ))
ps_alive=0
pidfile=`mysqld_get_param pid-file`
if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi
if [ "$1" = "check_alive" -a $ping_alive = 1 ] ||
[ "$1" = "check_dead" -a $ping_alive = 0 -a $ps_alive = 0 ]; then
return 0 # EXIT_SUCCESS
else
if [ "$2" = "warn" ]; then
echo -e "$ps_alive processes alive and '$MYADMIN ping' resulted in\n$ping_output\n" | $ERR_LOGGER -p daemon.debug
fi
return 1 # EXIT_FAILURE
fi
}
#
# main()
#
case "${1:-''}" in
'start')
sanity_checks;
# Start daemon
log_daemon_msg "Starting MySQL database server" "mysqld"
if mysqld_status check_alive nowarn; then
log_progress_msg "already running"
log_end_msg 0
else
/usr/bin/mysqld_safe > /dev/null 2>&1 &
# 6s was reported in #352070 to be too few when using ndbcluster
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
sleep 1
if mysqld_status check_alive nowarn ; then break; fi
log_progress_msg "."
done
if mysqld_status check_alive warn; then
log_end_msg 0
# Now start mysqlcheck or whatever the admin wants.
output=$(/etc/mysql/debian-start)
[ -n "$output" ] && log_action_msg "$output"
else
log_end_msg 1
log_failure_msg "Please take a look at the syslog"
fi
fi
# Some warnings
if $MYADMIN variables | egrep -q have_bdb.*YES; then
echo "BerkeleyDB is obsolete, see /usr/share/doc/mysql-server-5.0/README.Debian.gz" | $ERR_LOGGER -p daemon.info
fi
if [ -f /etc/mysql/debian-log-rotate.conf ]; then
echo "/etc/mysql/debian-log-rotate.conf is obsolete, see /usr/share/doc/mysql-server-5.0/NEWS.Debian.gz" | $ERR_L
fi
;;
'stop')
# * As a passwordless mysqladmin (e.g. via ~/.my.cnf) must be possible
# at least for cron, we can rely on it here, too. (although we have
# to specify it explicit as e.g. sudo environments points to the normal
# users home and not /root)
log_daemon_msg "Stopping MySQL database server" "mysqld"
if ! mysqld_status check_dead nowarn; then
set +e
shutdown_out=`$MYADMIN shutdown 2>&1`; r=$?
set -e
if [ "$r" -ne 0 ]; then
log_end_msg 1
[ "$VERBOSE" != "no" ] && log_failure_msg "Error: $shutdown_out"
log_daemon_msg "Killing MySQL database server by signal" "mysqld"
killall -15 mysqld
server_down=
for i in 1 2 3 4 5 6 7 8 9 10; do
sleep 1
if mysqld_status check_dead nowarn; then server_down=1; break; fi
done
if test -z "$server_down"; then killall -9 mysqld; fi
fi
fi
if ! mysqld_status check_dead warn; then
log_end_msg 1
log_failure_msg "Please stop MySQL manually and read /usr/share/doc/mysql-server-5.0/README.Debian.gz!"
exit -1
else
log_end_msg 0
fi
;;
'restart')
set +e; $SELF stop; set -e
$SELF start
;;
'reload'|'force-reload')
log_daemon_msg "Reloading MySQL database server" "mysqld"
$MYADMIN reload
log_end_msg 0
;;
'status')
if mysqld_status check_alive nowarn; then
log_action_msg "$($MYADMIN version)"
else
log_action_msg "MySQL is stopped."
exit 3
fi
;;
*)
echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
exit 1
;;
esac
I found many hints, but I would like this resolved to a certain degree of reliability for production servers.
Edit: It seems to be exactly this unsolved bug.
Maybe it is this bug from the MySQL site.
This seems related or identical.
Some people talk of a race condition with 2 instances of mysql_safe. Others suggest commentiong out the sanity check in the startup script.
I would try to figure out what is causing the CPU issue, rather than investigate how to re-write the startup script. The startup script is fairly standard and should work well in a production environment.