Skip to content

Unable to install RMySQL on macOS 10.13.6 #224

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

Closed
alecshaw opened this issue Sep 7, 2018 · 7 comments
Closed

Unable to install RMySQL on macOS 10.13.6 #224

alecshaw opened this issue Sep 7, 2018 · 7 comments

Comments

@alecshaw
Copy link

alecshaw commented Sep 7, 2018

I am currently trying to install RMySQL as it is a dependency for the mdsr package. The following is the error message I receive.

clang -I"/usr/local/Cellar/r/3.5.1/lib/R/include" -DNDEBUG -I/usr/local/Cellar/mysql/8.0.12/include/mysql   -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include   -fPIC  -g -O2  -c connection.c -o connection.o
connection.c:224:3: error: use of undeclared identifier 'my_bool'
  my_bool           tmp;
  ^
connection.c:229:3: error: use of undeclared identifier 'tmp'
  tmp = mysql_more_results(my_connection);
  ^
connection.c:230:24: error: use of undeclared identifier 'tmp'
  return ScalarLogical(tmp);
                       ^

I have tried a few different Stack Overflow threads, but they haven't solved the issue. Any help would be much appreciated.

Edit: It looks like pull request #223 would sort this out.

macOS 10.13.6
R 3.5.1
MySQL 8.0.12 Homebrew

@bouzidnm
Copy link

Any updates? I'm having the same problem.

@jpryda
Copy link

jpryda commented Nov 3, 2018

bump to this

@skodman
Copy link

skodman commented Nov 4, 2018

Same with Oracle linux 7.5 and it is really annoying. Somehow i have this running at work on virtual machine under Oracle Virtual box. I can't make it work on my spare laptop where i have ol_75 installed.
It seems to be related to the my_bool being removed from MySQL 8. It would be really great to have this sorted out

@ekoepplin
Copy link

Any updates? I'm having the same problem.

@skodman
Copy link

skodman commented Nov 22, 2018

After wasting significant amount of time i decided to roll back to MySQLversion 5.7. All works fine under this version on Oracle Linux. Also, i should clarify that i was able to install and use RMySQL on windows box and connect to MySQL8 on remote db server running on linux. So the issue is related to Linux and Mac OS.

@ankane
Copy link
Contributor

ankane commented Nov 28, 2018

fwiw, you can do:

git clone https://github.com/r-dbi/RMySQL.git
cd RMySQL
git pull origin 70116a3ec0ba1683502aa04e0542489f9c85c87c

And run

devtools:install()

To use #223 (for some reason, devtools::install_github("r-dbi/RMySQL#223") doesn't work)

@jeroen
Copy link
Member

jeroen commented Feb 7, 2019

This fix is on cran now.

@jeroen jeroen closed this as completed Feb 7, 2019
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

7 participants