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

opam install mysql fails! #15

Closed
hgouraud opened this issue Mar 1, 2020 · 4 comments
Closed

opam install mysql fails! #15

hgouraud opened this issue Mar 1, 2020 · 4 comments

Comments

@hgouraud
Copy link

hgouraud commented Mar 1, 2020

Hello

unable to install mysql with opam!
I checked the solution proposed in issue #8 to no avail!

iMac-H:mysql Henri$ opam depext conf-mysql
# Detecting depexts using vars: arch=x86_64, os=macos, os-distribution=homebrew, os-family=homebrew
# The following system packages are needed:
mysql-connector-c
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

Warning: mysql-client 8.0.18 is already installed and up-to-date
To reinstall 8.0.18, run `brew reinstall mysql-client`
# OS packages installation successful
iMac-H:mysql Henri$ opam install mysql
The following actions will be performed:
  ∗ install mysql 1.2.4

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
[mysql.1.2.4] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
[ERROR] The compilation of mysql failed at "/Users/Henri/.opam/opam-init/hooks/sandbox.sh build make".

#=== ERROR while compiling mysql.1.2.4 ========================================#
# context     2.0.0 | macos/x86_64 | ocaml-base-compiler.4.05.0 | https://opam.ocaml.org/#65eb41e7
# path        ~/.opam/4.07.1/.opam-switch/build/mysql.1.2.4
# command     ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code   2
# env-file    ~/.opam/log/mysql-5059-d2d111.env
# output-file ~/.opam/log/mysql-5059-d2d111.out
### output ###
# mysql_stubs.c:368:3: error: use of undeclared identifier 'my_bool'
# [...]
#   ^
# mysql_stubs.c:371:3: error: use of undeclared identifier 'ret'
#   ret = mysql_select_db(mysql, newdb);
#   ^
# mysql_stubs.c:376:7: error: use of undeclared identifier 'ret'
#   if (ret)
#       ^
# fatal error: too many errors emitted, stopping now [-ferror-limit=]
# 1 warning and 20 errors generated.
# make[1]: *** [mysql_stubs.o] Error 2
# make: *** [byte-code-library] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
┌─ The following actions failed
│ λ build mysql 1.2.4
└─ 
╶─ No changes have been performed
iMac-H:mysql Henri$ 

I cant figure out what is missing!!

@hgouraud
Copy link
Author

hgouraud commented Mar 1, 2020

Is this issue linked to issue #13 ??

@ygrek
Copy link
Owner

ygrek commented Mar 2, 2020

please show full build log (e.g. run opam install -b or build ocaml-mysql from git)

@hgouraud
Copy link
Author

hgouraud commented Mar 2, 2020

Solved my problem with :

  • uninstall mysql (Oracle version)
  • install MariaDB
    Not quite ready to reinstall Oracle MySql and try again!! Sorry and thanks

@ygrek
Copy link
Owner

ygrek commented Mar 3, 2020

Ok, closing, one day I will get to trying with oracle mysql myself..

@ygrek ygrek closed this as completed Mar 3, 2020
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