Build Chef client from source on Windows - ruby

I am trying to build chef client for windows using the instructions provided # https://github.com/chef/chef/tree/master/omnibus#kitchen-based-build-environment.
I think I have setup the pre-req steps correctly on windows and have run successfully load-omnibus-toolchain.ps1 from the omnibus-toolchain. After that if I run "bundle exec omnibus build chef -l internal" from powershell, I am getting the below error. Any help on this would be appreciated. Note that I am trying to build from the latest source 16.X.X.
C:/buildkite-agent is not a directory.
Bundler will use C:/Users/ADMINI~1/AppData/Local/Temp/2/bundler20201006-5812-gte5gk5812' as your home directory temporarily. [CLI] I | 2020-10-06T18:48:58+00:00 | Using config from 'omnibus.rb' [Project] I | 2020-10-06T18:48:58+00:00 | Loading project chef' from C:/chef-16.5.64/omnibus/config/projects/chef.rb'. [Software] I | 2020-10-06T18:49:02+00:00 | Loading software preparation' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/preparation.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:02+00:00 | Loading software chef' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/chef.rb' using overrides from chef. [Software: chef] W | 2020-10-06T18:49:02+00:00 | Version local_source for software chef was not parseable. Comparison methods such as #satisfies? will not be available for this version. [Software: chef] W | 2020-10-06T18:49:02+00:00 | Version local_source for software chef was not parseable. Comparison methods such as #satisfies? will not be available for this version. [Software] I | 2020-10-06T18:49:02+00:00 | Loading software ruby' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/ruby.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:02+00:00 | Loading software zlib' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/zlib.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:02+00:00 | Loading software openssl' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/openssl.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software cacerts' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/cacerts.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software libffi' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/libffi.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software libyaml' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/libyaml.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software config_guess' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/config_guess.rb' using overrides from chef. [Software: config_guess] W | 2020-10-06T18:49:03+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software ohai' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/ohai.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software libarchive' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/libarchive.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software libxml2' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/libxml2.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software liblzma' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/liblzma.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software bzip2' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/bzip2.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software nokogiri' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/nokogiri.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software libxslt' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/libxslt.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software gem-permissions' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/gem-permissions.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software shebang-cleanup' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/shebang-cleanup.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software version-manifest' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/version-manifest.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software openssl-customization' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/openssl-customization.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software ruby-windows-devkit' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/ruby-windows-devkit.rb' using overrides from chef. [Software: ruby-windows-devkit] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for ruby-windows-devkit [Software: ruby-windows-devkit] W | 2020-10-06T18:49:03+00:00 | DEPRECATED: project_file (DSL). This is a property of the NetFetcher and will not be publically exposed in the next major release. In general, you should not be using this method in your software definitions as it is an internal implementation detail of the NetFetcher. If you disagree with this statement, you should open an issue on the Omnibus repository on GitHub an explain your use case. For now, I will return the path to the downloaded file on disk, but please rethink the problem you are trying to solve :). [Software] I | 2020-10-06T18:49:03+00:00 | Loading software ruby-windows-devkit-bash' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/ruby-windows-devkit-bash.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software ruby-cleanup' from C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-software-0e0686b82299/config/software/ruby-cleanup.rb' using overrides from chef. [Software] I | 2020-10-06T18:49:03+00:00 | Loading software more-ruby-cleanup' from C:/chef-16.5.64/omnibus/config/software/more-ruby-cleanup.rb' using overrides from chef. Building chef 16.5.64+20201006184858... [Software: cacerts] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for cacerts [Software: openssl] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for openssl [Software: libffi] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for libffi [Software: zlib] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for zlib [Software: preparation] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for preparation [NullFetcher: preparation] I | 2020-10-06T18:49:03+00:00 | Fetching preparation' (nothing to fetch)
[Software: config_guess] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for config_guess
[Software: config_guess] W | 2020-10-06T18:49:03+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: config_guess] W | 2020-10-06T18:49:03+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[GitFetcher] I | 2020-10-06T18:49:03+00:00 | git ls-remote "https://github.com/chef/config-mirror.git" "master*" [Software: libyaml] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for libyaml [Software: ruby] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for ruby [Software: ohai] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for ohai [Software: ohai] W | 2020-10-06T18:49:03+00:00 | Version v16.5.4 for software ohai was not parseable. Comparison methods such as #satisfies? will not be available for this version. [Software: ohai] W | 2020-10-06T18:49:03+00:00 | Version v16.5.4 for software ohai was not parseable. Comparison methods such as #satisfies? will not be available for this version. [GitFetcher] I | 2020-10-06T18:49:03+00:00 | git ls-remote "https://github.com/chef/ohai.git" "v16.5.4*"
[Software: liblzma] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for liblzma
[Software: libxml2] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for libxml2
[Software: bzip2] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for bzip2
[Software: libarchive] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for libarchive
[Software: libxslt] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for libxslt
[Software: chef] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for chef
[Software: chef] W | 2020-10-06T18:49:03+00:00 | Version local_source for software chef was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: chef] W | 2020-10-06T18:49:03+00:00 | Version local_source for software chef was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[PathFetcher: chef] I | 2020-10-06T18:49:03+00:00 | Digesting C:/omnibus-ruby/src/chef/chef with sha256
[Software: nokogiri] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for nokogiri
[NullFetcher: nokogiri] I | 2020-10-06T18:49:03+00:00 | Fetching nokogiri' (nothing to fetch) [Software: gem-permissions] I | 2020-10-06T18:49:03+00:00 | Resolving manifest entry for gem-permissions [NullFetcher: gem-permissions] I | 2020-10-06T18:49:03+00:00 | Fetching gem-permissions' (nothing to fetch)
[Software: shebang-cleanup] I | 2020-10-06T18:49:04+00:00 | Resolving manifest entry for shebang-cleanup
[NullFetcher: shebang-cleanup] I | 2020-10-06T18:49:04+00:00 | Fetching shebang-cleanup' (nothing to fetch) [Software: version-manifest] I | 2020-10-06T18:49:04+00:00 | Resolving manifest entry for version-manifest [NullFetcher: version-manifest] I | 2020-10-06T18:49:04+00:00 | Fetching version-manifest' (nothing to fetch)
[Software: openssl-customization] I | 2020-10-06T18:49:04+00:00 | Resolving manifest entry for openssl-customization
[PathFetcher: openssl-customization] I | 2020-10-06T18:49:04+00:00 | Digesting C:/omnibus-ruby/src/openssl-customization with sha256
[PathFetcher: openssl-customization] I | 2020-10-06T18:49:04+00:00 | Digesting C:/chef-16.5.64/omnibus/files/openssl-customization with sha256
[Software: ruby-windows-devkit-bash] I | 2020-10-06T18:49:04+00:00 | Resolving manifest entry for ruby-windows-devkit-bash
[Software: ruby-cleanup] I | 2020-10-06T18:49:04+00:00 | Resolving manifest entry for ruby-cleanup
[NullFetcher: ruby-cleanup] I | 2020-10-06T18:49:04+00:00 | Fetching ruby-cleanup' (nothing to fetch) [Software: more-ruby-cleanup] I | 2020-10-06T18:49:04+00:00 | Resolving manifest entry for more-ruby-cleanup [PathFetcher: more-ruby-cleanup] I | 2020-10-06T18:49:04+00:00 | Digesting C:/omnibus-ruby/src/more-ruby-cleanup with sha256 [PathFetcher: more-ruby-cleanup] I | 2020-10-06T18:49:04+00:00 | Digesting C:/chef-16.5.64/omnibus/files/more-ruby-cleanup with sha256 I | 2020-10-06T18:49:04+00:00 | 84f04b02a7e2fc8eaa9d52deee5f6d57b06fe447 refs/heads/master I | 2020-10-06T18:49:04+00:00 | 5a37f3e4347b42023e15015b8f5e56c3905e20bf refs/tags/v16.5.4 I | 2020-10-06T18:49:04+00:00 | 0487d320efda47bce88b68c0916e2f4b275244ae refs/tags/v16.5.4^{} [GitFetcher: config_guess] I | 2020-10-06T18:49:04+00:00 | $ git -c core.autocrlf=false cat-file -t 84f04b02a7e2fc8eaa9d52deee5f6d57b06fe447 [GitFetcher: ohai] I | 2020-10-06T18:49:04+00:00 | $ git -c core.autocrlf=false cat-file -t 0487d320efda47bce88b68c0916e2f4b275244ae I | 2020-10-06T18:49:04+00:00 | commit I | 2020-10-06T18:49:04+00:00 | commit [PathFetcher: chef] I | 2020-10-06T18:49:24+00:00 | Digesting C:/chef-16.5.64/omnibus/files/../.. with sha256 [Licensing] I | 2020-10-06T18:49:48+00:00 | Project 'chef' is using 'Chef EULA' which is not one of the standard licenses identified in https://opensource.org/licenses/alphabetical. Consider using one of the standard licenses. [Software: config_guess] W | 2020-10-06T18:49:48+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version. [Software: ohai] W | 2020-10-06T18:49:48+00:00 | Version v16.5.4 for software ohai was not parseable. Comparison methods such as #satisfies? will not be available for this version. [Software: chef] W | 2020-10-06T18:49:48+00:00 | Version local_source for software chef was not parseable. Comparison methods such as #satisfies? will not be available for this version. [Licensing] I | 2020-10-06T18:49:48+00:00 | Software 'config_guess' uses license 'GPL-3.0 (with exception)' which is not one of the standard licenses identified in https://opensource.org/licenses/alphabetical. Consider using one of the standard licenses. [Software: preparation] D | 2020-10-06T18:49:48+00:00 | Forcing build because git caching is off [Builder: preparation] I | 2020-10-06T18:49:48+00:00 | Starting build [Builder: preparation] I | 2020-10-06T18:49:48+00:00 | Cached builder checksum before build: 2791faa48a03f3fe6e6b7283fd538d6bcdc9ec7235211dc02d0d6a04af3870bd [Builder: preparation] I | 2020-10-06T18:49:48+00:00 | <Dynamic Ruby block>: 0.0001s [Builder: preparation] I | 2020-10-06T18:49:49+00:00 | touch C:/opscode/chef/embedded/lib/.gitkeep': 0.0021s
[Builder: preparation] I | 2020-10-06T18:49:49+00:00 | touch C:/opscode/chef/embedded/bin/.gitkeep': 0.0013s [Builder: preparation] I | 2020-10-06T18:49:49+00:00 | touch C:/opscode/chef/bin/.gitkeep': 0.0011s
[Builder: preparation] I | 2020-10-06T18:49:49+00:00 | Build preparation: 0.257s
[Builder: preparation] I | 2020-10-06T18:49:49+00:00 | Finished build
[Software: zlib] D | 2020-10-06T18:49:49+00:00 | Forcing build because git caching is off
[NetFetcher: zlib] I | 2020-10-06T18:49:49+00:00 | Cleaning project directory C:/omnibus-ruby/src/zlib' [NetFetcher: zlib] I | 2020-10-06T18:49:49+00:00 | Extracting C:\omnibus-ruby\cache\zlib-1.2.11.tar.gz' to C:\omnibus-ruby\src\zlib' [NetFetcher: zlib] I | 2020-10-06T18:49:49+00:00 | $ tar zxf C:\omnibus-ruby\cache\zlib-1.2.11.tar.gz -CC:\omnibus-ruby\src\zlib I | 2020-10-06T18:49:51+00:00 | tar (child): Cannot connect to C: resolve failed I | 2020-10-06T18:49:51+00:00 | I | 2020-10-06T18:49:51+00:00 | gzip: stdin: unexpected end of file I | 2020-10-06T18:49:51+00:00 | tar: Child returned status 128 I | 2020-10-06T18:49:51+00:00 | tar: Error is not recoverable: exiting now The following shell command exited with status 2: $ tar zxf C:\omnibus-ruby\cache\zlib-1.2.11.tar.gz -CC:\omnibus-ruby\src\zlib Output: (nothing) Error: tar (child): Cannot connect to C: resolve failed gzip: stdin: unexpected end of file tar: Child returned status 128 tar: Error is not recoverable: exiting now C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/util.rb:139:in rescue in shellout!'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/util.rb:134:in shellout!' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/fetchers/net_fetcher.rb:246:in extract'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/fetchers/net_fetcher.rb:187:in deploy' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/fetchers/net_fetcher.rb:71:in clean'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/software.rb:1232:in execute_build' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/software.rb:1123:in build_me'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/project.rb:1078:in block (2 levels) in build' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/project.rb:1077:in each'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/project.rb:1077:in block in build' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/licensing.rb:62:in block in create_incrementally'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/licensing.rb:57:in tap' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/licensing.rb:57:in create_incrementally'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/project.rb:1076:in build' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/cli.rb:89:in build'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in run' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in dispatch' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/cli/base.rb:33:in dispatch'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/base.rb:485:in start' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/lib/omnibus/cli.rb:42:in execute!'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bundler/gems/omnibus-22ce15145e83/bin/omnibus:16:in <top (required)>' C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bin/omnibus:23:in load'
C:/opscode/omnibus-toolchain/embedded/lib/ruby/gems/2.6.0/bin/omnibus:23:in `'```

There is a CINC project, which is FOSS distribution of Chef Infra™ client, licensed under Apache-2.0. So, if you just need to workaround Chef Licensing model, you can use Cinc Client binaries.

Related

mysql database is empty in MariaDB

I installed MariaDB on my Mac Monterey using Homebrew. But I cannot login MariaDB after I dropped root users and other local users even I reinstalled it.
So I looked for solutions on google and luckily enough I can login MariaDB using mysqld_safe --skip-grant-tables --skip-networking from this link enter link description here. I checked the databases and tables to see any abnormalities and I finally find that there is no table in mysql database.
Here's the MariaDB information.
# moonwatcher # MoonWatcherdeMacBook-Air in /usr/local/etc [14:52:33]
$ brew info mariadb
mariadb: stable 10.8.3 (bottled)
Drop-in replacement for MySQL
https://mariadb.org/
Conflicts with:
mariadb-connector-c (because both install `mariadb_config`)
mysql (because mariadb, mysql, and percona install the same binaries)
mytop (because both install `mytop` binaries)
percona-server (because mariadb, mysql, and percona install the same binaries)
/usr/local/Cellar/mariadb/10.8.3_1 (920 files, 187.5MB) *
Poured from bottle on 2022-08-14 at 13:40:39
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/mariadb.rb
License: GPL-2.0-only
==> Dependencies
Build: bison ✘, cmake ✘, fmt ✘, pkg-config ✔
Required: groonga ✔, openssl#1.1 ✔, pcre2 ✔, zstd ✔
==> Caveats
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.
MySQL is configured to only allow connections from localhost by default
To restart mariadb after an upgrade:
brew services restart mariadb
Or, if you don't want/need a background service you can just run:
/usr/local/opt/mariadb/bin/mysqld_safe --datadir=/usr/local/var/mysql
==> Analytics
install: 12,338 (30 days), 43,510 (90 days), 161,252 (365 days)
install-on-request: 12,321 (30 days), 43,452 (90 days), 160,988 (365 days)
build-error: 29 (30 days)
(base)
Associated my.cnf files
# moonwatcher # MoonWatcherdeMacBook-Air in /usr/local/etc [14:53:42]
$ ls
bash_completion.d gitconfig init.d mecabrc my.cnf.d my.cnf.default.default wgetrc
ca-certificates groonga logrotate.d my.cnf my.cnf.default openssl#1.1
(base)
# moonwatcher # MoonWatcherdeMacBook-Air in /usr/local/etc [14:53:43]
$ cat my.cnf
#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]
#
# include *.cnf from the config directory
#
!includedir /usr/local/etc/my.cnf.d
(base)
# moonwatcher # MoonWatcherdeMacBook-Air in /usr/local/etc [14:53:52]
$ cat my.cnf.default
# Default Homebrew MySQL server config
[mysqld]
#skip-grant-tables
# Only allow connections from localhost
bind-address = 127.0.0.1
(base)
# moonwatcher # MoonWatcherdeMacBook-Air in /usr/local/etc [14:53:57]
$ cat my.cnf.default.default
# Default Homebrew MySQL server config
[mysqld]
# Only allow connections from localhost
bind-address = 127.0.0.1
(base)
No tables in mysql database
# moonwatcher # MoonWatcherdeMacBook-Air in ~ [14:54:23]
$ mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 41
Server version: 10.8.3-MariaDB Homebrew
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| homebrew |
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.002 sec)
MariaDB [(none)]> use mysql;
Database changed
MariaDB [mysql]> show tables;
Empty set (0.001 sec)
MariaDB [mysql]>

Can not import correctly Seaborn into my IBM Watson-Studio

I am trying to import seaborn in my IBM cloud (watson) on windows for my final assignment, but somehow it gives me an error. I am trying the following code to import seaborn:
#notice: installing seaborn might takes a few minutes\
!conda install -c anaconda seaborn -y
But then happens this: Please I need help to solve the issue
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done
Package Plan
environment location: /opt/conda/envs/Python-3.7-main
added / updated specs:
- seaborn
The following packages will be downloaded:
package | build
---------------------------|-----------------
argon2-cffi-20.1.0 | py37h7b6447c_1 49 KB anaconda
defusedxml-0.6.0 | py_0 23 KB anaconda
entrypoints-0.3 | py37_0 12 KB anaconda
fontconfig-2.13.0 | h9420a91_0 291 KB anaconda
icu-58.2 | he6710b0_3 22.7 MB anaconda
jupyter_client-6.1.7 | py_0 76 KB anaconda
libpng-1.6.37 | hbc83047_0 364 KB anaconda
libtiff-4.1.0 | h2733197_1 607 KB anaconda
libuuid-1.0.3 | h1bed415_2 16 KB anaconda
libxcb-1.14 | h7b6447c_0 610 KB anaconda
libxml2-2.9.10 | hb55368b_3 1.3 MB anaconda
lz4-c-1.9.2 | heb0550a_3 203 KB anaconda
markupsafe-1.1.1 | py37h14c3975_1 26 KB anaconda
mistune-0.8.4 |py37h14c3975_1001 53 KB anaconda
ncurses-6.2 | he6710b0_1 1.1 MB anaconda
packaging-20.4 | py_0 35 KB anaconda
pandocfilters-1.4.2 | py37_1 13 KB anaconda
pyjwt-1.7.1 | py37_0 32 KB anaconda
pyparsing-2.4.7 | py_0 64 KB anaconda
webencodings-0.5.1 | py37_1 19 KB anaconda
------------------------------------------------------------
Total: 27.5 MB
Downloading and Extracting Packages
libxml2-2.9.10 | 1.3 MB | ###############################6 | 86% WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/conda/pkgs/libxml2-2.9.10-hb55368b_3/bin/xmllint. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/conda/pkgs/libxml2-2.9.10-hb55368b_3/bin/xml2-config. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/conda/pkgs/libx
If you the notebook is created using the default runtime as shown below, then Seaborn is installed by default.
Run the below command to see Seaborn in the list of packages installed.
!pip list
If you don't see Seaborn in the list, try installing with the below command
!pip install seaborn
If you still see the error, update your question with the region in which you have your project with notebook created and also screenshots of the environment + error helps

Laravel 8 Installer error -- The "--remove-vcs" option does not exist

I've recently install new Laravel Installer to get version 8 I was having the following error:
| | | |
| | __ _ _ __ __ ___ _____| |
| | / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V / __/ |
|______\__,_|_| \__,_| \_/ \___|_|
[Symfony\Component\Console\Exception\RuntimeException]
The "--remove-vcs" option does not exist.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
I thought primarily that was the installer of laravel and didn't find any article about, but the problem was in my composer that need update.
For it I tried:
composer self-update
And I got
[RuntimeException]
SHA384 is not supported by your openssl extension, could not verify the phar file integrity
So the process would be uninstall Composer and install again
To remove:
sudo rm /usr/local/bin/composer
To install:
curl -sS https://getcomposer.org/installer | sudo php
Making composer Global:
sudo mv composer.phar /usr/local/bin/composer
Test Composer:
composer
Finally I installed laravel again.
composer global require laravel/installer

Facing an issue with go-openapi/analysis library using glide

I was trying to install the go-openapi/analysis using the glide. Using the glide up -v command for installing. Glide version v0.13.2 and go version 1.11
glide.yaml
package: abc
import:
- package: github.com/go-openapi/analysis
version: 0.16.0
Got this error during the installation process.
Keeping github.com/go-openapi/analysis 0.16.0 [INFO]
--> Setting version for github.com/mailru/easyjson to 2f5df55504ebc322e4d52d34df6a1f5b503bf26d.
[ERROR] Error scanning path/filepath: cannot find package "." in:
.glide/cache/src/https-path-filepath

conda problem on rp3: "Could not find some dependencies for <package>: blas * openblas"

After updating my RP3 to kernel release/version 4.14.52-v7+/#1123, trying to install or update packages such as pandas, numpy, etc. with conda (arm71, v3.16.0) causes an error:
Error: Could not find some dependencies for <package>: blas * openblas
Installing packages with pip still works fine.
The best option for you will be to use berryconda, as standard conda channels lack the support of ARM-based builds
There are 2 approach to my understanding.
I'm not 100% that it resolves your issue, so any feedback is of interest.
(Some info were found here: Scientific Python for Raspberry Pi)
I have found that some packages are available using apt-get :
sudo apt-get install python-numpy python-scipy python-pandas python-h5py
I realize that it is not strictly conda usage but it can do the trick.
Otherwise, you can use the follwing commands (here exmaple is given with scipy).
Please be aware that you might face compatibility issues between packages or python versions.
Some packages might not be available for ARM
anaconda search -t conda scipy
This gives you something like:
Using binstar api site https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
Name | Version | Package Types | Platforms
------------------------- | ------ | --------------- | ---------------
Alges/scipy | 0.19.1 | conda | linux-64, win-64
: Scientific Library for Python
BioBuilds/scipy | 1.0.0 | conda | linux-ppc64le
... some lines removed ... here is a result with a grep on 'arm'
RaspberryPi/scipy | 0.13.2 | conda | linux-armv6l
alorenzo175/scipy | 0.18.0 | conda | linux-armv7l
compass/scipy | 0.19.0 | conda | linux-armv7l
poppy-project/scipy | 0.17.0 | conda | linux-armv7l
rpi/scipy | 1.0.0 | conda | linux-armv6l, linux-armv7l
then you can do this:
anaconda show rpi/scipy
which gives:
Using binstar api site https://api.anaconda.org
Name: scipy
Summary: Scientific Library for Python
Access: public
Package Types: conda
Versions:
+ 0.18.1
+ 0.19.0
+ 0.19.1
+ 1.0.0
To install this package with conda run:
conda install --channel https://conda.anaconda.org/rpi scipy
Then all you have to do is execute the said command:
conda install --channel https://conda.anaconda.org/rpi scipy
Fetching package metadata: ......
Solving package specifications: .
Error: Unsatisfiable package specifications.
Generating hint:
[ COMPLETE ]|#################################################################################################################################################################################################################| 100%
Hint: the following packages conflict with each other:
- scipy
- python 3.4*
Use 'conda info scipy' etc. to see the dependencies for each package.
Printing some infos:
conda info scipy
Fetching package metadata: ....
scipy 0.16.0 np19py34_1
-----------------------
file name : scipy-0.16.0-np19py34_1.tar.bz2
name : scipy
version : 0.16.0
build number: 1
build string: np19py34_1
channel : defaults
size : 24.4 MB
date : 2015-08-20
license : BSD
md5 : a1f8618171817de092b818a3739ef95c
installed environments:
dependencies:
blas * openblas
numpy 1.9*
openblas 0.2.14
python 3.4*
scipy 0.16.0 np19py27_1
-----------------------
file name : scipy-0.16.0-np19py27_1.tar.bz2
name : scipy
version : 0.16.0
build number: 1
build string: np19py27_1
channel : defaults
size : 25.1 MB
date : 2015-08-20
license : BSD
md5 : bc3882c6770d1dc7e3e5495266002d56
installed environments:
dependencies:
blas * openblas
numpy 1.9*
openblas 0.2.14
python 2.7*

Resources