KH Coder
code: zsh
$ brew install mysql
$ brew services start mysql
==> Successfully started mysql (label: homebrew.mxcl.mysql)
$ mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0
Please set the password for root here.
New password:
Re-enter new password:
Estimated strength of the password: 50
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n
... skipping.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : n
... skipping.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
code: zsh
$ brew install perl
By default non-brewed cpan modules are installed to the Cellar. If you wish
for your modules to persist across updates we recommend using local::lib.
You can set that up like this:
PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
echo 'eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"' >> ~/.zshrc
code: zsh
$ cpanm Jcode Tk DBD::CSV DBD::mysql Encode::Locale Text::Diff File::BOM Lingua::JA::Regular::Unicode Net::Telnet YAML Spreadsheet::ParseExcel::FmtJapan Spreadsheet::ParseXLSX Excel::Writer::XLSX Statistics::ChisqIndep Statistics::Lite Unicode::Escape Algorithm::NaiveBayes Text::Iconv
!
! Can't write to /Library/Perl/5.30 and /usr/local/bin: Installing modules to /Users/wafuwafu13/perl5
! To turn off this warning, you have to do one of the following:
! - run me as a root or with --sudo option (to install to /Library/Perl/5.30 and /usr/local/bin)
! - Configure local::lib in your existing shell to set PERL_MM_OPT etc.
! - Install local::lib by running the following commands
!
! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
--> Working on Jcode
Configuring Jcode-2.07 ... OK
Building and testing Jcode-2.07 ... OK
Successfully installed Jcode-2.07
--> Working on Tk
Configuring Tk-804.036 ... N/A
! Configure failed for Tk-804.036. See /Users/wafuwafu13/.cpanm/work/1655367297.12976/build.log for details.
--> Working on DBD::CSV
Building and testing Text-Iconv-1.7 ... FAIL
! Installing Text::Iconv failed. See /Users/wafuwafu13/.cpanm/work/1655367297.12976/build.log for details. Retry with --force to force install it.
28 distributions installed
code: zsh
~
$ cpanm Text::Iconv --force
!
! Can't write to /Library/Perl/5.30 and /usr/local/bin: Installing modules to /Users/wafuwafu13/perl5
! To turn off this warning, you have to do one of the following:
! - run me as a root or with --sudo option (to install to /Library/Perl/5.30 and /usr/local/bin)
! - Configure local::lib in your existing shell to set PERL_MM_OPT etc.
! - Install local::lib by running the following commands
!
! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
--> Working on Text::Iconv
Configuring Text-Iconv-1.7 ... OK
Building and testing Text-Iconv-1.7 ... FAIL
! Testing Text-Iconv-1.7 failed but installing it anyway.
Successfully installed Text-Iconv-1.7
1 distribution installed
code: zsh
** testing if installed package keeps a record of temporary installation path
* DONE (tinytex)
ダウンロードされたパッケージは、以下にあります
‘/private/var/folders/tp/hrvkt91914q8d7ft6dzrkk8w0000gn/T/RtmpiXyyug/downloaded_packages’
code: zsh
~/desktop/khcoder-3.Beta.05
$ perl kh_coder.pl
Can't locate Jcode.pm in @INC (you may need to install the Jcode module) (@INC contains: /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0 /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0 /opt/homebrew/lib/perl5/site_perl/5.34.0/darwin-thread-multi-2level /opt/homebrew/lib/perl5/site_perl/5.34.0) at kh_coder.pl line 33.
BEGIN failed--compilation aborted at kh_coder.pl line 33.
$ cpanm Jcode
!
! Can't write to /Library/Perl/5.30 and /usr/local/bin: Installing modules to /Users/wafuwafu13/perl5
! To turn off this warning, you have to do one of the following:
! - run me as a root or with --sudo option (to install to /Library/Perl/5.30 and /usr/local/bin)
! - Configure local::lib in your existing shell to set PERL_MM_OPT etc.
! - Install local::lib by running the following commands
!
! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
Jcode is up to date. (2.07)
code: zsh
~/desktop/khcoder-3.Beta.05
$ PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
echo 'eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"' >> ~/.zshrc
Loading internal logger. Log::Log4perl recommended for better logging
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? yes yes Fetching with HTTP::Tiny:
Reading '/Users/wafuwafu13/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
Reading '/Users/wafuwafu13/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Thu, 16 Jun 2022 07:41:03 GMT
HTTP::Date not available
..............
New CPAN.pm version (v2.34) available.
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
..............................................................DONE
Fetching with HTTP::Tiny:
Reading '/Users/wafuwafu13/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /Users/wafuwafu13/.cpan/Metadata
Running install for module 'local::lib'
Fetching with HTTP::Tiny:
Fetching with HTTP::Tiny:
Checksum for /Users/wafuwafu13/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.000029.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring H/HA/HAARG/local-lib-2.000029.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for local::lib
Writing MYMETA.yml and MYMETA.json
HAARG/local-lib-2.000029.tar.gz
/opt/homebrew/Cellar/perl/5.34.0/bin/perl Makefile.PL -- OK
Running make for H/HA/HAARG/local-lib-2.000029.tar.gz
cp lib/local/lib.pm blib/lib/local/lib.pm
cp lib/POD2/DE/local/lib.pod blib/lib/POD2/DE/local/lib.pod
cp lib/lib/core/only.pm blib/lib/lib/core/only.pm
cp lib/POD2/PT_BR/local/lib.pod blib/lib/POD2/PT_BR/local/lib.pod
Manifying 4 pod documents
HAARG/local-lib-2.000029.tar.gz
/usr/bin/make -- OK
The current configuration of allow_installing_outdated_dists is 'ask/no', but for this option we would need 'CPAN::DistnameInfo' installed. Please install 'CPAN::DistnameInfo' as soon as possible. As long as we are not equipped with 'CPAN::DistnameInfo' this option does not take effect
Running make test for HAARG/local-lib-2.000029.tar.gz
PERL_DL_NONLAZY=1 "/opt/homebrew/Cellar/perl/5.34.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/bad_variables.t ...... ok
t/carp-mismatch.t ...... ok
t/classmethod.t ........ ok
t/de-dup.t ............. ok
t/lib-core-only.t ...... ok
t/pipeline.t ........... ok
t/shell.t .............. ok
t/stackable.t .......... ok
t/subroutine-in-inc.t .. ok
t/taint-mode.t ......... ok
All tests successful.
Files=10, Tests=245, 2 wallclock secs ( 0.03 usr 0.01 sys + 0.87 cusr 0.68 csys = 1.59 CPU)
Result: PASS
HAARG/local-lib-2.000029.tar.gz
/usr/bin/make test -- OK
Running make install for HAARG/local-lib-2.000029.tar.gz
Manifying 4 pod documents
Installing /Users/wafuwafu13/perl5/lib/perl5/POD2/PT_BR/local/lib.pod
Installing /Users/wafuwafu13/perl5/lib/perl5/POD2/DE/local/lib.pod
Installing /Users/wafuwafu13/perl5/lib/perl5/local/lib.pm
Installing /Users/wafuwafu13/perl5/lib/perl5/lib/core/only.pm
Installing /Users/wafuwafu13/perl5/man/man3/POD2::PT_BR::local::lib.3
Installing /Users/wafuwafu13/perl5/man/man3/lib::core::only.3
Installing /Users/wafuwafu13/perl5/man/man3/POD2::DE::local::lib.3
Installing /Users/wafuwafu13/perl5/man/man3/local::lib.3
Appending installation info to /Users/wafuwafu13/perl5/lib/perl5/darwin-thread-multi-2level/perllocal.pod
HAARG/local-lib-2.000029.tar.gz
/usr/bin/make install -- OK
code: zsh
$ perl kh_coder.pl
zsh: command not found: perl
code: zsh
~
$ echo $PATH
"/Users/wafuwafu13/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/Users/wafuwafu13/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/Users/wafuwafu13/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/Users/wafuwafu13/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/wafuwafu13/perl5"; export PERL_MM_OPT;