I want to install matplotlib, but it failed and get error like this
` [82/101] Linking target src/backend_agg.cpython-311.so
FAILED: src/backend_agg.cpython-311.so
g++ -o src/backend_agg.cpython-311.so src/backend_agg.cpython-311.so.p/py_converters.cpp.o src/backend_agg.cpython-311.so.p/backend_agg.cpp.o src/backend_agg.cpython-311.so.p/backend_agg_wrapper.cpp.o -I/usr/local/include -flto -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group extern/agg24-svn/libagg.a subprojects/freetype-2.6.1/libfreetype.a -Wl,--end-group
1 error
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/local/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
[83/101] Compiling C++ object src/ft2font.cpython-311.so.p/py_converters.cpp.o
ninja: build stopped: subcommand failed.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed`
I already added this:
export CFLAGS="-I/usr/local/include"
export CXXFLAGS="-I/usr/local/include"
export CC=gcc
export CXX=g++
export MAX_CONCURRENCY=1
export CPUCOUNT=1
export MAKEFLAGS="-j1"
and trying install the package using cpuset -l 0 pip install matplotlib
, tried installing using CMAKE_BUILD_PARALLEL_LEVEL=1 pip install matplotlib
here is the exported when i checked it
(ppw) [Ranwiesiel@s12]:<~/.virtualenvs>$ printenv
SHELL=/usr/local/bin/bash
HISTSIZE=100000000
LC_MONETARY=en_US.UTF-8
EDITOR=/usr/local/bin/nano
PWD=/home/Ranwiesiel/.virtualenvs
LOGNAME=Ranwiesiel
CXX=g++
CXXFLAGS=-I/usr/local/include
MAX_CONCURRENCY=1
HOME=/home/Ranwiesiel
VIRTUAL_ENV=/usr/home/Ranwiesiel/domains/prediksi-berita.ranwiesiel.serv00.net/.virtualenvs/ppw
CLICOLOR=YES
SSH_CONNECTION=103.82.164.5 55454 213.189.53.91 22
MACHINE=amd64
CPUCOUNT=1
MAKEFLAGS=-j1
TERM=xterm-256color
USER=Ranwiesiel
SHLVL=1
LC_MESSAGES=en_US.UTF-8
VIRTUAL_ENV_PROMPT=ppw
LD_LIBRARY_PATH=/usr/local/lib/gcc13
LC_CTYPE=en_US.UTF-8
MACHINE_ARCH=amd64
PS1=(ppw) [\u\[\033[1;35m\]@\[\033[0m\]\h]\[\033[1;35m\]:\[\033[0m\]<\w>\[\033[1;35m\]\$ \[\033[0m\]
SSH_CLIENT=103.82.164.5 55454 22
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
PATH=/usr/home/Ranwiesiel/domains/prediksi-berita.ranwiesiel.serv00.net/.virtualenvs/ppw/bin:/usr/local/devil/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/Ranwiesiel/bin
CC=gcc
CFLAGS=-I/usr/local/include
MAIL=/var/mail/Ranwiesiel
SSH_TTY=/dev/pts/1052
LC_NUMERIC=en_US.UTF-8
OLDPWD=/home/Ranwiesiel
_=/usr/bin/printenv
Thank You.