मैं एक कस्टम Heroku पर निर्माण स्थापित करने का प्रयास कर रहा हूँ के साथ बनाता है, तो मैं विभिन्न तरीकों से उपयोग कर रहा हूँ एक तिहाई हिस्सा buildpacks का उपयोग कर स्थापित करने के प्रयास करने के लिए। मेरी .buildpacks फ़ाइल में मेरे पास है:स्थापित कर रहा है कस्टम Heroku और इस मुद्दे को लाइब्रेरी पथ
https://github.com/ddollar/heroku-buildpack-apt
https://github.com/heroku/heroku-buildpack-python.git
और मेरे Aptfile
में मैं निम्नलिखित है: libgeoip-dev
जो जो requirements.txt
(GeoIP==1.3.2
) के साथ स्थापित किया गया है GeoIP के लिए एक पूर्व अपेक्षित
यहाँ मेरी वातावरण हो रहा है चर:
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
मैं त्रुटि संदेश आ रहा है:
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
इसे ठीक करने के होशियार तरीका क्या है? अर्थात। मुझे लगता है कि जहां पैकेज प्रबंधक स्थापित करता है मैं नहीं बदल सकते। क्या इसके चारों ओर एक रास्ता है?