[MXS-346] Make MaxScale build on more environments (e.g. OSX) Created: 2015-09-01 Updated: 2017-07-26 Resolved: 2016-10-17 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 1.3.0 |
| Fix Version/s: | 2.0.0 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Simon J Mudd | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This is a personal observation. While attempting to build MaxScale on my Mac I notice that it won't build because OSX does not have the expected [Linux] libaio library. [myuser@myhost ~/github.com/mariadb-corporation/MaxScale/build]$ cmake .. – Configuring incomplete, errors occurred! Due to this currently MaxScale won't build. This limits my ability to test etc. Perhaps the effort needed to support other operating systems like OSX or other UNIX varieties (FreeBSD etc) is not worthwhile, but many applications wrap some of these routines away from the rest of the code so that a broader set of operating systems can run the software. MariaDB and MySQL works on several platforms and do not have these limitations, though they do use libaio on Linux, so I assume that something similar could be done for MaxScale. I guess this depends mainly on time and interest, but it would be nice to see this work on platforms such as OSX which are often used by developers or DBAs. For now I can work around this using a local virtual machine and that is what I'll do. |
| Comments |
| Comment by Johan Wikman [ 2016-10-17 ] |
|
libaio is no longer used. |
| Comment by Erik Cederstrand [ 2017-03-02 ] |
|
Does this mean that MaxScale can possibly be compiled on OS X or FreeBSD now? |
| Comment by Ron Arts [ 2017-05-14 ] |
|
Even on the latest master branch, it still complains about libaio not being found. |
| Comment by Johan Wikman [ 2017-05-16 ] |
|
Do not use master, but use either a specific branch such as 2.1.2 or develop if you want the latest stuff. We try to keep develop in working condition, but there are no guarantees. In fact, I thought master had been deleted. But as MaxScale uses Linux specific functionality such as epoll it most likely cannot be built on BSD unless there are some libraries that would provide the same API on BSD. |
| Comment by Erik Cederstrand [ 2017-05-16 ] |
|
As of FreeBSD r255672 (FreeBSD 11), the Linux emulation layer has epoll support. There is no direct libaio emulation AFAIK but FreeBSD has the aio(4) equivalent. |
| Comment by Roland Giesler [ 2017-07-26 ] |
|
So, is there hope to compile MaxScale on FreeBSD 11 then? |