Solved Cannot install jupyter-lab

martinrame

Member

Reaction score: 17
Messages: 99

Hi, I'm trying to install Jupyter Lab in a 12.1 Jail by following this tutorial: https://project.altservice.com/issues/923

Everything goes smoothly until I do pip-3.7 install jupyter, where I get this error:

Code:
...
 c++ -pthread -std=c++11 -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_KQUEUE=1 -DZMQ_IOTHREADS_USE_KQUEUE=1 -DZMQ_POLL_BASED_ON_POLL=1 -Ibundled/zeromq/include -Ibundled -I/usr/local/include/python3.7m -c bundled/zeromq/src/err.cpp -o build/temp.freebsd-12.1-RELEASE-p8-amd64-3.7/bundled/zeromq/src/err.o
    bundled/zeromq/src/err.cpp:394:10: fatal error: 'libunwind.h' file not found
    #include <libunwind.h>
             ^~~~~~~~~~~~~
    1 error generated.
    error: command 'c++' failed with exit status 1
    ----------------------------------------
ERROR: Command "/usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-4f7yiy5r/pyzmq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-pd7949s5/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-4f7yiy5r/pyzmq/

Does anyone know how to fix it?.
 
OP
martinrame

martinrame

Member

Reaction score: 17
Messages: 99

Thanks I did pkg install devel/libunwind, it installed that package, but the issue still happens.
 
OP
martinrame

martinrame

Member

Reaction score: 17
Messages: 99

BTW, the file is in /usr/local/include, how can I tell the compiler to look there? maybe it is looking in /usr/include?
 
Last edited by a moderator:

Schroter

Member

Reaction score: 2
Messages: 31

Fixed with this:

Code:
export C_INCLUDE_PATH=/usr/local/include/:${C_INCLUDE_PATH}
export CPLUS_INCLUDE_PATH=/usr/local/include/:${CPLUS_INCLUDE_PATH}

Hi,
I get:
Code:
schroter@SCHROTER:~ % sudo export C_INCLUDE_PATH=/usr/local/include/:${C_INCLUD
E_PATH}
C_INCLUDE_PATH: Undefined variable.
schroter@SCHROTER:~ % sudo export CPLUS_INCLUDE_PATH=/usr/local/include/:${CPLU
S_INCLUDE_PATH}
CPLUS_INCLUDE_PATH: Undefined variable.
Would anyone be able to help me in this regards.
Thanks & Best Regards
Schroter
 
Top