Próbuję zainstalować niestandardową kompilację na heroku, więc używam różnych sposobów, aby spróbować trzeciej części instalacji przy użyciu buildpacks. W moim pliku .buildpacks mam:Instalowanie niestandardowych buildów heroku i problemów z ścieżkami biblioteki
https://github.com/ddollar/heroku-buildpack-apt
https://github.com/heroku/heroku-buildpack-python.git
iw moim Aptfile
mam następujące: libgeoip-dev
co jest warunkiem wstępnym dla GeoIP który jest instalowany z requirements.txt
(GeoIP==1.3.2
)
Oto moje środowisko zmienne:
remote: C_INCLUDE_PATH is /app/.heroku/vendor/include:/app/.heroku/vendor/include:/app/.heroku/python/include
remote: CPATH is /tmp/build_xxxxx/.apt/usr/include:
remote: LD_LIBRARY_PATH is /app/.heroku/vendor/lib:/app/.heroku/vendor/lib:/app/.heroku/python/lib
komunikat o błędzie jestem coraz to:
remote: building 'GeoIP' extension
remote: creating build
remote: creating build/temp.linux-x86_64-2.7
remote: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/app/.heroku/python/include/python2.7 -c py_GeoIP.c -o build/temp.linux-x86_64-2.7/py_GeoIP.o -fno-strict-aliasing
remote: creating build/lib.linux-x86_64-2.7
remote: gcc -pthread -shared build/temp.linux-x86_64-2.7/py_GeoIP.o -lGeoIP -o build/lib.linux-x86_64-2.7/GeoIP.so
remote: /usr/bin/ld: cannot find -lGeoIP
remote: collect2: error: ld returned 1 exit status
remote: error: command 'gcc' failed with exit status 1
Jaki jest najmądrzejszy sposób, aby to naprawić? To znaczy. Chyba nie mogę zmienić miejsca instalacji menedżera pakietów. Czy istnieje sposób obejścia tego?