-
Notifications
You must be signed in to change notification settings - Fork 340
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
Packages are extracted but not configured #35
Comments
Here's an example of a rails initializer we just added to our application to address the issue we encountered: if Rails.env.production? || Rails.env.staging?
ENV['GDAL_DATA'] = ".apt/usr/share/gdal/2.1"
# heroku-buildpack-apt does not run postinstall scripts
ENV['LD_LIBRARY_PATH'] = ".apt/usr/lib/libblas:.apt/usr/lib/lapack:#{ENV['LD_LIBRARY_PATH']}"
end Typically, there is a symlink chain: |
I suspect this also relates to #27, and perhaps even #37; in my own experience, installing ffmpeg left many linked libraries unfindable (because they were in |
It is likely that all of these issues have the same root cause, yes. |
Just a note for anyone hitting issues on Heroku: you'll also need to set Adding |
The compile script uses
dpkg -x
to extract the packages, but this results in post-installation steps not being run. I suspect this is the cause of some of theLD_LIBRARY_PATH
issues that have been opened.In a recent investigation, we determined that a problem for our application was that some libraries were being installed but no symlink in
/app/.apt/usr/lib
created for them because these symlinks are created only whendpkg --configure
is run.Unfortunately, this opens some new questions. Since configuration of a package might run post-installation steps, the paths need to be the same as they would be for a regular installation. The only way I can think to do that would be to run in a chroot. However, we wouldn't want to
debootstrap
a full base system into the slug. We would probably want things like the alternatives system to exist.There may be no easy way to resolve this, but I thought it best to open an issue to share the knowledge gained by struggling with our application.
The text was updated successfully, but these errors were encountered: