[GH-ISSUE #93] Install on maxOS should put files to /usr/local instead of /usr #81

Closed
opened 2026-05-05 11:37:40 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ghost on GitHub (Feb 10, 2017).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/93

Originally assigned to: @jmcnamara on GitHub.

Now macOS has some system protection and even under root I cannot write to /usr.

There is, however, a special dir for installing custom libs, it is /usr/local.

So the make install on macOS should install everything to /usr/local instead of /usr.
I.e. to /usr/local/lib and /usr/local/include.

Originally created by @ghost on GitHub (Feb 10, 2017). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/93 Originally assigned to: @jmcnamara on GitHub. Now macOS has some system protection and even under root I cannot write to `/usr`. There is, however, a special dir for installing custom libs, it is `/usr/local`. So the `make install` on macOS should install everything to `/usr/local` instead of `/usr`. I.e. to `/usr/local/lib` and `/usr/local/include`.
gitea-mirror 2026-05-05 11:37:40 -06:00
Author
Owner

@jmcnamara commented on GitHub (Feb 13, 2017):

Hi,

Yes. Agreed. That would be better for Linux as well.

I also want to add a INSTALL_DIR or DESTDIR variable to allow the dir to be specified/overridden.

I'll add it in the next release.

Thanks for the suggestion.

John

<!-- gh-comment-id:279409406 --> @jmcnamara commented on GitHub (Feb 13, 2017): Hi, Yes. Agreed. That would be better for Linux as well. I also want to add a `INSTALL_DIR` or `DESTDIR` variable to allow the dir to be specified/overridden. I'll add it in the next release. Thanks for the suggestion. John
Author
Owner

@jmcnamara commented on GitHub (Jun 25, 2017):

I've pushed a change to master so that files are installed to /usr/local by default. The installation dir can be overridden by using the INSTALL_DIR environmental variable:

INSTALL_DIR=/usr/third_party make install

Thanks for the suggestion.

<!-- gh-comment-id:310933278 --> @jmcnamara commented on GitHub (Jun 25, 2017): I've pushed a change to master so that files are installed to `/usr/local` by default. The installation dir can be overridden by using the `INSTALL_DIR` environmental variable: INSTALL_DIR=/usr/third_party make install Thanks for the suggestion.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#81
No description provided.