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

A DBIish example is outdated; MySQL is replaced with MariaDB on Debian Stretch #1993

Closed
titsuki opened this issue May 4, 2018 · 2 comments
Closed
Assignees
Labels
good first issue If you want to dive in, this would be a good place to start

Comments

@titsuki
Copy link
Member

titsuki commented May 4, 2018

The problem

See: https://docs.perl6.org/language/nativecall#MySQL

This section recommends to use apt-get install mysql-server on debian-like system.
However, MySQL is replaced with MariaDB on Debian Stretch.
So, apt-get install mysql-server tries to install mariadb-client and the shared object file (i.e. libmysqlclient.so) will not be installed.

See also:

Suggestions

I'm not sure, but a quick and dirty solution is:

$ wget http://ftp.br.debian.org/debian/pool/main/m/mysql-5.5/libmysqlclient18_5.5.58-0+deb8u1_amd64.deb
$ sudo dpkg -i libmysqlclient18_5.5.58-0+deb8u1_amd64.deb
@titsuki titsuki changed the title A DBIlish example is outdated; MySQL is replaced with MariaDB on Debian Stretch A DBIish example is outdated; MySQL is replaced with MariaDB on Debian Stretch May 4, 2018
@JJ JJ added the good first issue If you want to dive in, this would be a good place to start label May 4, 2018
@JJ JJ added this to the May SQUASHathon milestone May 4, 2018
@JJ JJ self-assigned this May 6, 2018
@JJ
Copy link
Contributor

JJ commented May 6, 2018

Wouldn't it be better to change the examples to use MariaDB?

@JJ
Copy link
Contributor

JJ commented May 6, 2018

Also, those examples have nothing to do with NativeCall. It does not use it.

@JJ JJ closed this as completed in e69970e May 6, 2018
JJ added a commit that referenced this issue May 6, 2018
That would close #388.

Also, adds links to NativeCall use in DBIish, refs #1993 albeit closed.
titsuki added a commit to titsuki/doc that referenced this issue May 6, 2018
I fixed this section for several reasons:

1) The previous example could install the dynamic library but the DBIish example also requires MySQL server.
2) The MySQL APT Repository officially supports debian stretch (also it supports jessie and wheezy).
3) Even if an user use an older distribution, he/she can install the current version of MySQL easily.

(and sorry for my confusing suggestion: Raku#1993 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue If you want to dive in, this would be a good place to start
Projects
None yet
Development

No branches or pull requests

2 participants