xlocale.h

2 posts / 0 new
Last post
#1 Wed, 2016-07-06 16:05
mparker
  • mparker's picture
  • Offline
  • Last seen: 1 year 8 months ago
  • Joined: 2016-07-06

Does anyone know which package contains xlocale.h?

I'm trying to use a docker image python:3.4.5-alpine,
https://github.com/docker-library/python/blob/682708e7866caccd3f476f1d30ca60c0851249e1/3.5/alpine/Dockerfile

which pulls from apline:3.4.

-------------------------------------

Here is what my dockerfile looks like:

FROM python:3.5.2-alpine
ENV container docker

RUN apk update
RUN apk add --update alpine-sdk

#
# Install apline packages
#
RUN apk add make
RUN apk add cmake
RUN apk add g++
RUN apk add gfortran
RUN apk add linux-headers
RUN apk add libxslt-dev
RUN apk add libxml2-dev
RUN apk add libc-dev
RUN apk add gcc
RUN apk add python3-dev
RUN apk add musl-dev

#
# Install python dependencies
#
# RUN apk add git
RUN pip3 install --upgrade pip
RUN pip3 install lxml
RUN pip3 install nltk
RUN pip3 install requests
RUN pip3 install numpy
RUN pip3 install scipy
RUN pip3 install matplotlib
RUN pip3 install theano

---------------------------------------

Eventually, It fails here during the numpy installation:

numpy/core/src/multiarray/datetime.c:2622:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (meta->base == -1) {
^
numpy/core/src/multiarray/datetime.c:2661:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (meta->base == -1) {
^
numpy/core/src/multiarray/datetime.c:2730:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (meta->base == -1) {
^
numpy/core/src/multiarray/datetime.c:2784:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (meta->base == -1) {
^
numpy/core/src/multiarray/datetime.c: In function 'convert_pyobjects_to_datetimes':
numpy/core/src/multiarray/datetime.c:3118:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (inout_meta->base == -1) {
^
gcc: numpy/core/src/multiarray/numpyos.c
numpy/core/src/multiarray/numpyos.c:18:21: fatal error: xlocale.h: No such file or directory
compilation terminated.
numpy/core/src/multiarray/numpyos.c:18:21: fatal error: xlocale.h: No such file or directory
compilation terminated.
error: Command "gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.linux-x86_64-3.5/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-x86_64-3.5/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.5m -Ibuild/src.linux-x86_64-3.5/numpy/core/src/private -Ibuild/src.linux-x86_64-3.5/numpy/core/src/private -Ibuild/src.linux-x86_64-3.5/numpy/core/src/private -c numpy/core/src/multiarray/numpyos.c -o build/temp.linux-x86_64-3.5/numpy/core/src/multiarray/numpyos.o" failed with exit status 1

----------------------------------------
Command "/usr/local/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-bb80hiv7/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-anb71dtz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-bb80hiv7/numpy/

Thu, 2016-08-04 18:41
ptrj
  • ptrj's picture
  • Offline
  • Last seen: 1 year 1 month ago
  • Joined: 2016-08-04

Answer on your question is this link: http://pkgs.alpinelinux.org/contents?file=xlocale.h&path=&name=&branch=&repo=&arch=
But solution on your problem is: ln -s /usr/include/locale.h /usr/include/xlocale.h

For more examples watch this link: https://hub.docker.com/r/apihackers/wagtail/~/dockerfile/

Log in or register to post comments