-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
/usr/local/lib
missing from include paths
#556
Comments
I'm afraid this is outside of the scope of Homebrew. Our build process isn't affected by this because we properly set up library search paths for all declared dependencies, no matter if Homebrew is installed in The reason your users (that presumably only have Xcode installed) are running into that The reason why I'd suggest to modify the instructions for your users to ask them to explicitly include |
Also bump the version to 0.1.0.2. Originally we had `extra-lib-dirs: /usr/local/lib` in `stack.yaml`. I removed it because it wasn't necessary on my Mac. However, it turns out that it is necessary for machines with the default installation of XCode, which *doesn't* search that path by default. (On my machine, it wasn't necessary because I had run `xcode-select --install` which adds that path permanently to your search path. For more context, see Homebrew/brew#556.) I'm adding the setting back to `tensorflow.cabal` as well as `stack.yaml` so that the Hackage release also contains this fix. Changing `stack.yaml` is still necessary in order to fix linkage in the `snappy` package (which `tensorflow-records` depends on). Hopefully that will go away once we remove the dependency (tensorflow#118).
Also bump the version to 0.1.0.2. Originally we had `extra-lib-dirs: /usr/local/lib` in `stack.yaml`. I removed it because it wasn't necessary on my Mac. However, it turns out that it is necessary for machines with the default installation of XCode, which *doesn't* search that path by default. (On my machine, it wasn't necessary because I had run `xcode-select --install` which adds that path permanently to your search path. For more context, see Homebrew/brew#556.) I'm adding the setting back to `tensorflow.cabal` as well as `stack.yaml` so that the Hackage release also contains this fix. Changing `stack.yaml` is still necessary in order to fix linkage in the `snappy` package (which `tensorflow-records` depends on). Hopefully that will go away once we remove the dependency (#118).
Also bump the version to 0.1.0.2. Originally we had `extra-lib-dirs: /usr/local/lib` in `stack.yaml`. I removed it because it wasn't necessary on my Mac. However, it turns out that it is necessary for machines with the default installation of XCode, which *doesn't* search that path by default. (On my machine, it wasn't necessary because I had run `xcode-select --install` which adds that path permanently to your search path. For more context, see Homebrew/brew#556.) I'm adding the setting back to `tensorflow.cabal` as well as `stack.yaml` so that the Hackage release also contains this fix. Changing `stack.yaml` is still necessary in order to fix linkage in the `snappy` package (which `tensorflow-records` depends on). Hopefully that will go away once we remove the dependency (#118).
We distribute traildb through homebrew. Since traildb is a C library, the formula links the
.dylib
file into/usr/local/lib
, as normal.Even if the library was released just one month ago, we already got two bug reports of users that couldn't link against it, because
/usr/local/lib
wasn't in their library search paths. In both cases, runningcode-select --install
fixed it:traildb/traildb#87 (comment)
traildb/traildb#67 (comment)
I was wondering if
brew doctor
should report this. I can submit a PR but I wanted to discuss first if this was within the scope ofbrew doctor
or not.The text was updated successfully, but these errors were encountered: