./sage -n jupyter fails
ModuleNotFoundError: No module named '_ssl'
The Jupyter notebook requires ssl, even if you do not use https. Install the openssl development packages in your system and then rebuild Python (sage -f python3).
Unfortunately, openssl installation has failed :
[openssl-1.1.1g] Undefined symbols for architecture x86_64:
....
[openssl-1.1.1g] ld: symbol(s) not found for architecture x86_64
[openssl-1.1.1g] clang: error: linker command failed with exit code 1 (use -v to see invocation)
Same issue when recompiling sage from sage-9.2.tar.gz
./configure --enable-openssl=yes
make
[patch-2.7.5] ld: symbol(s) not found for architecture x86_64
I have macports and hombres installed
So I dit
sudo mv /opt/local /opt/local_old
sudo mv /usr/local/Homebrew /usr/local/Homebrew_old
before typing make for sage
See file enclose for configure output
Thank you for helping
As far as building from source is concerned, I'd recommend using
Homebrew, instead of trying
to build most packages from scratch (as it is the case if you don't use it).
Please pay attention that you need to run
source .homebrew-build-env
and to the list of packages you'd install printed out by ./configure
(at the end of its run)
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.
Thank you for helping me.
I followed the instructions at the end of ./configure output (brew install ...)
I get ld: warning: ignoring file ./.libs/libtuneup-s1.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
Error installing package gf2x-1.3.0
I have also tried to compile sage-9.2 on another partition of my mac : il fails after 4h of compilation for the same reason for one of the last packages.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6c90038f-0d0c-4935-bb3e-20170e82dcdbn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/2299fdbd-5da9-4b0c-b1f0-bf8a3f48c796n%40googlegroups.com.
/usr/bin/gcc
/usr/bin/g++
/usr/local/bin/ar
/usr/local/bin/ranlib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
/Applications/sage-9.2/local/var/tmp/sage/build/gf2x-1.3.0/.libs/libtuneup-s1.a: cannot open `/Applications/sage-9.2/local/var/tmp/sage/build/gf2x-1.3.0/.libs/libtuneup-s1.a' (No such file or directory)
Philippe
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/004663ef-0816-444a-87a2-171f2262b281n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/004663ef-0816-444a-87a2-171f2262b281n%40googlegroups.com.
sudo mv /usr/local/bin/ar /usr/local/bin/ar_tmp
and
sudo mv /usr/local/bin/ranlib /usr/local/bin/ranlib_tmp
the compilation is much doing better but it fails here
[sagelib-9.2] error: command 'gcc' failed with exit status 1
Due this warming
[sagelib-9.2] ld: warning: dylib (/usr/local/lib/libgmp.dylib) was built for newer macOS version (10.15) than being linked (10.9)
ls -la /usr/local/lib/libmpc.dylib
lrwxr-xr-x 1 kassad admin 39 4 nov 19:48 /usr/local/lib/libmpc.dylib -> ../Cellar/libmpc/1.2.1/lib/libmpc.dylib
I did once more
brew install mpc
and
Testing that Sage starts...
[2020-11-05 16:47:58] SageMath version 9.2, Release Date: 2020-10-24
Yes, Sage starts.
real 309m25,435s
user 285m12,693s
sys 37m56,735s
Sage build/upgrade complete!
THANK YOU