Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL 5.7.20 fails to install under macOS Sierra 10.12.6 #36570

Closed
x80486 opened this issue Mar 8, 2018 · 3 comments
Closed

MySQL 5.7.20 fails to install under macOS Sierra 10.12.6 #36570

x80486 opened this issue Mar 8, 2018 · 3 comments

Comments

@x80486
Copy link

x80486 commented Mar 8, 2018

I'm trying to install MySQL 5.7.20 under macOS Sierra 10.12.6 but it fails "saying":

gorre@uplink: ~/Workshop/erlang/igww-core $ nix-env --available --query "mysql"
mysql-5.5.58
mysql-5.7.20

gorre@uplink: ~/Workshop/erlang/igww-core $ nix-env --install --prebuilt-only mysql-5.7.20 --dry-run
(dry run; not doing anything)
installing 'mysql-5.7.20'
these paths will be fetched (38.46 MiB download, 357.54 MiB unpacked):
  /nix/store/0dd11jabgsyhwzf82j3a87vn08vlkgq7-boost-1.59.0-dev
  /nix/store/8wry4grgy7ns9spmq63pnj3m05szgj6h-boost-1.59.0
  /nix/store/hrv2apcxdc0jilfcj1kqd36ivbh2xqc5-mysql-5.7.20-static
  /nix/store/nsaxsh0s4d3m5rv04nc62j35d6imzws6-mysql-5.7.20

gorre@uplink: ~/Workshop/erlang/igww-core $ nix-env --install --prebuilt-only mysql-5.7.20
installing 'mysql-5.7.20'
these paths will be fetched (38.46 MiB download, 357.54 MiB unpacked):
  /nix/store/0dd11jabgsyhwzf82j3a87vn08vlkgq7-boost-1.59.0-dev
  /nix/store/8wry4grgy7ns9spmq63pnj3m05szgj6h-boost-1.59.0
  /nix/store/hrv2apcxdc0jilfcj1kqd36ivbh2xqc5-mysql-5.7.20-static
  /nix/store/nsaxsh0s4d3m5rv04nc62j35d6imzws6-mysql-5.7.20
copying path '/nix/store/8wry4grgy7ns9spmq63pnj3m05szgj6h-boost-1.59.0' from 'https://cache.nixos.org'...
copying path '/nix/store/0dd11jabgsyhwzf82j3a87vn08vlkgq7-boost-1.59.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/nsaxsh0s4d3m5rv04nc62j35d6imzws6-mysql-5.7.20' from 'https://cache.nixos.org'...
copying path '/nix/store/hrv2apcxdc0jilfcj1kqd36ivbh2xqc5-mysql-5.7.20-static' from 'https://cache.nixos.org'...
building '/nix/store/xs7wrj94p10kr9ilmxc8hbn2csh0ypcs-user-environment.drv'...
error: getting status of '/nix/store/nsaxsh0s4d3m5rv04nc62j35d6imzws6-mysql-5.7.20/lib/libmysqlclient_r.so': No such file or directory
builder for '/nix/store/xs7wrj94p10kr9ilmxc8hbn2csh0ypcs-user-environment.drv' failed with exit code 1
error: build of '/nix/store/xs7wrj94p10kr9ilmxc8hbn2csh0ypcs-user-environment.drv' failed

Technical details

gorre@uplink: ~/Workshop/erlang/igww-core $ nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (2.01 MiB download, 11.35 MiB unpacked):
  /nix/store/0igxxngigjgfkgg3cw547n92b8bpg6b1-stdenv-darwin
  /nix/store/126mxbl0mrm05x5x2kdchzslkvkq7jqd-bash-4.4-p12-doc
  /nix/store/3n7ambnrqk2lhvrid9yqvi3j70vvb8mh-nix-info
  /nix/store/43ifglv86253wppvpgbi2q5807rvj195-bash-4.4-p12-info
  /nix/store/i7d72fbagp0pc8k00q1abrcqb1p16x9q-bash-4.4-p12-dev
  /nix/store/igppx36iwv1ax466nhpsyif72jpvrhlm-bash-4.4-p12
  /nix/store/jv681nlxmqsvk41ka2kb6zm8snyiki1y-bash-4.4-p12-man
  /nix/store/qn6cqb945jbp1b72bpg9ywrfi5w63ynn-bash-4.4-p12-doc
  /nix/store/w1bsb0b6asq6m5rykiqzrkvmfl8s81wx-DarwinTools-1
  /nix/store/yc02j8b8r4359jiy18dy2pizadbfivvy-readline-7.0p3
  /nix/store/yhlj4s0mq2m788a7jx0p5lrpapngknv7-bash-4.4-p12-info
  /nix/store/yv52w90iqlf448vl4z4k2lqvp01hr0lk-adv_cmds-osx-10.5.8-locale
  /nix/store/z4mfykv0p8zf9ijgy0i5v33svvm1xbn8-bash-4.4-p12-dev
copying path '/nix/store/126mxbl0mrm05x5x2kdchzslkvkq7jqd-bash-4.4-p12-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/qn6cqb945jbp1b72bpg9ywrfi5w63ynn-bash-4.4-p12-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/43ifglv86253wppvpgbi2q5807rvj195-bash-4.4-p12-info' from 'https://cache.nixos.org'...
copying path '/nix/store/yhlj4s0mq2m788a7jx0p5lrpapngknv7-bash-4.4-p12-info' from 'https://cache.nixos.org'...
copying path '/nix/store/jv681nlxmqsvk41ka2kb6zm8snyiki1y-bash-4.4-p12-man' from 'https://cache.nixos.org'...
copying path '/nix/store/yv52w90iqlf448vl4z4k2lqvp01hr0lk-adv_cmds-osx-10.5.8-locale' from 'https://cache.nixos.org'...
copying path '/nix/store/z4mfykv0p8zf9ijgy0i5v33svvm1xbn8-bash-4.4-p12-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/w1bsb0b6asq6m5rykiqzrkvmfl8s81wx-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/yc02j8b8r4359jiy18dy2pizadbfivvy-readline-7.0p3' from 'https://cache.nixos.org'...
copying path '/nix/store/igppx36iwv1ax466nhpsyif72jpvrhlm-bash-4.4-p12' from 'https://cache.nixos.org'...
copying path '/nix/store/3n7ambnrqk2lhvrid9yqvi3j70vvb8mh-nix-info' from 'https://cache.nixos.org'...
copying path '/nix/store/i7d72fbagp0pc8k00q1abrcqb1p16x9q-bash-4.4-p12-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/0igxxngigjgfkgg3cw547n92b8bpg6b1-stdenv-darwin' from 'https://cache.nixos.org'...
 - system: `"x86_64-darwin"`
 - host os: `Darwin 16.7.0, macOS 10.12.6`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0`
 - channels(root): `"nixpkgs-18.03pre130569.7a04c2ca296"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
@x80486
Copy link
Author

x80486 commented Apr 15, 2018

I'm not sure if this is supposed to work already, but I'm still getting the same error message(s)...

@matthewbauer
Copy link
Member

Maybe your channels are out of date? Running this should work for you:

nix-env --install --prebuilt-only mysql-5.7.20 -f channel:nixpkgs-unstable

@x80486
Copy link
Author

x80486 commented May 27, 2018

That worked. I usually do:

$ nix-channel --update nixpkgs
$ nix-channel --update nixpkgs-unstable

I thought that was enough to be up-to-date.

Anyway, it's all working! Thanks for nailing down this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants