| Summary: | Ruby gem mysql2 fails to install with mariaDB | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Alexandr Bezenkov <alexandrbezenkov> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, stormi-mageia |
| Version: | 2 | Keywords: | Triaged, UPSTREAM |
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
|
Description
Alexandr Bezenkov
2012-08-24 22:43:45 CEST
$ urpmf '/usr/include/mysql/mysql.h'|sort -u lib64mariadb-devel:/usr/include/mysql/mysql.h libmariadb-devel:/usr/include/mysql/mysql.h CC:
(none) =>
davidwhodgins so the issue can be where ? (if there is one), sorry for this case I really don't see Since the system is i586 the package libmariadb-devel needs to to be installed, as it contains the file /usr/include/mysql/mysql.h I posted the comment as I did, to make it clear how I found out which package is needed. As the file is provided, I'll go ahead and close this bug as invalid. Status:
NEW =>
RESOLVED Sorry for mistyping, with Mageia I installed not mariadb-devel, but libmariadb-devel and as I said before after installing it mysql.h is in /usr/unclude/mysql. However I still get "mysql.h is missing" nevertheless mysql.h is present. Status:
RESOLVED =>
REOPENED Hi, thanks for reporting this bug. Assigned to the package maintainer for mariadb, who can maybe see why mysql.h is not found during gem install. Keywords:
(none) =>
Triaged in the past, there was a bug which installed mysql.h in /usr/include/mysql/mysql/ perhaps this is related? (i note that it's likely that other distro's still ship it in the wrong place) i don't know anything about ruby, but in C, it could be like this: gcc -I /usr/include/mysql -o foo foo.c and in foo.c: #include <mysql/mysql.h> ... this would have mysql.h looking in /usr/include/mysql/mysql/ and in the compiler, setting include path to /usr/include/ would fix the problem. i'm afraid this will have to be assigned to the ruby mysql maintainer for follow up. i donno how ruby stuff works, but if it's in C, it would be nice to have logs detailing the exact errors and the code that calls for the header file. (is this a configure thing? or during build?) where is the include path file detailed? perhaps changing this, would fix it? perhaps the maintainer can talk this through with upstream ruby people to see if it could look for both paths? Summary: no obvious bug in mariadb packaging, maybe a bug in ruby, definitely a need for insight from someone who knows ruby. Assigning to ruby maintainer. Please just re-assign to bugsquad if I was wrong. Assignee:
alien =>
pterjan This is not related to our ruby package (as reporter builds his own ruby from scratch). Anyway this is a ruby module, written in C, that is not installed from our repository. As this is using upstream rvm + upstream mysql2, the bug should probably be reported to mysql2. Source RPM:
ruby =>
(none) So, this is an upstream mysql2 bug probably. See comment #6 for possible explanation: in mariadb path to mysql.h has been fixed, but other distros might still use the old wrong path, /usr/include/mysql/mysql/ If you are not mistaken, mysql2 should make sure it builds with both old and new path. Keywords:
(none) =>
UPSTREAM |