Tachyon installation error
Hello, all I am attempting to install sagemath 9.0, but I am getting this error.
Commands imputed into the terminal:
cd ~
git clone github link for sage math # Note in my commands I did post the link, but I do not have enough karma points to post links in the sagemath fourms
cd sage
MAKE="make -j8" make 2>&1
Error Message:
*************************************************************** Error building Sage. The following package(s) may have failed to build (not necessarily during this run of 'make all-start'): * package: tachyon-0.98.9.p7 last build time: Feb 29 11:23 log file: /home/luis/sage/logs/pkgs/tachyon-0.98.9.p7.log build directory: /home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7 It is safe to delete any log files and build directories, but they contain information that is helpful for debugging build problems. WARNING: If you now run 'make' again, the build directory of the same version of the package will, by default, be deleted. Set the environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this. Makefile:31: recipe for target 'all-start' failed make[1]: *** [all-start] Error 1 make[1]: Leaving directory '/home/luis/sage' Makefile:13: recipe for target 'all' failed make: *** [all] Error 2
log file added
mkdir: cannot create directory '/home/luis/.sage//R': Permission denied /home/luis/sage/src/bin/sage-env: line 470: /home/luis/.sage//R/Makevars.user: No such file or directory Found local metadata for tachyon-0.98.9.p7 Attempting to download package tachyon-0.98.9.tar.bz2 from mirrors //mirrors.xmission.com/sage/spkg/upstream/tachyon/tachyon-0.98.9.tar.bz2 # link removed from post because of asksage [......................................................................]
tachyon-0.98.9.p7
Setting up build directory for tachyon-0.98.9.p7 Finished extraction Applying patches from ../patches... Applying ../patches/Make-arch.patch patching file unix/Make-arch Applying ../patches/Make-config.patch patching file unix/Make-config Applying ../patches/Makefile.patch patching file unix/Makefile Applying ../patches/main.c.patch patching file demosrc/main.c
Host system: Linux luis-Aspire-E5-573G 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
Package 'tachyon' is currently not installed No legacy uninstaller found for 'tachyon'; nothing to do Building tachyon-0.98.9.p7 make[4]: Entering directory '/home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7/src/unix' make all \ "ARCH = linux-64-thr" \ "CFLAGS = -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include " \ "ARFLAGS = r" \ "STRIP = strip" \ "LIBS = -L. -ltachyon -L/home/luis/sage/local/lib -lpng -lz -lm -lpthread" make[5]: Entering directory '/home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7/src/unix' Building Tachyon Parallel Ray Tracing library Copyright 1994-2007, John E. Stone All Rights Reserveed Making architecture directory ../compile/linux-64-thr Making library directory ../compile/linux-64-thr/libtachyon make ../compile ../compile/linux-64-thr ../compile/linux-64-thr/libtachyon ../compile/linux-64-thr/libtachyon.a ../compile/linux-64-thr/tachyon make[6]: Entering directory '/home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7/src/unix' make[6]: Nothing to be done for '../compile'. make[6]: Nothing to be done for '../compile/linux-64-thr'. make[6]: Nothing to be done for '../compile/linux-64-thr/libtachyon'. gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/api.c -o ../compile/linux-64-thr/libtachyon/api.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/apigeom.c -o ../compile/linux-64-thr/libtachyon/apigeom.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/box.c -o ../compile/linux-64-thr/libtachyon/box.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/global.c -o ../compile/linux-64-thr/libtachyon/global.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/hash.c -o ../compile/linux-64-thr/libtachyon/hash.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/parallel.c -o ../compile/linux-64-thr/libtachyon/parallel.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/threads.c -o ../compile/linux-64-thr/libtachyon/threads.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/camera.c -o ../compile/linux-64-thr/libtachyon/camera.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/render.c -o ../compile/linux-64-thr/libtachyon/render.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/trace.c -o ../compile/linux-64-thr/libtachyon/trace.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/grid.c -o ../compile/linux-64-thr/libtachyon/grid.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/intersect.c -o ../compile/linux-64-thr/libtachyon/intersect.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/sphere.c -o ../compile/linux-64-thr/libtachyon/sphere.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/plane.c -o ../compile/linux-64-thr/libtachyon/plane.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/ring.c -o ../compile/linux-64-thr/libtachyon/ring.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/triangle.c -o ../compile/linux-64-thr/libtachyon/triangle.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/cylinder.c -o ../compile/linux-64-thr/libtachyon/cylinder.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/quadric.c -o ../compile/linux-64-thr/libtachyon/quadric.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/extvol.c -o ../compile/linux-64-thr/libtachyon/extvol.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/vol.c -o ../compile/linux-64-thr/libtachyon/vol.o ../src/vol.c: In function 'LoadVol': ../src/vol.c:290:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(vol->data, 1, (vol->xres * vol->yres * vol->zres), dfile); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/ui.c -o ../compile/linux-64-thr/libtachyon/ui.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/util.c -o ../compile/linux-64-thr/libtachyon/util.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/vector.c -o ../compile/linux-64-thr/libtachyon/vector.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/shade.c -o ../compile/linux-64-thr/libtachyon/shade.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/texture.c -o ../compile/linux-64-thr/libtachyon/texture.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/coordsys.c -o ../compile/linux-64-thr/libtachyon/coordsys.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/imap.c -o ../compile/linux-64-thr/libtachyon/imap.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/light.c -o ../compile/linux-64-thr/libtachyon/light.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/imageio.c -o ../compile/linux-64-thr/libtachyon/imageio.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/jpeg.c -o ../compile/linux-64-thr/libtachyon/jpeg.o gcc -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR -D_REENTRANT -DUSEPNG -I/home/luis/sage/local/include -c ../src/pngfile.c -o ../compile/linux-64-thr/libtachyon/pngfile.o ../src/pngfile.c:33:10: fatal error: png.h: No such file or directory #include "png.h" /* the libpng library headers / ^~~~~~~ compilation terminated. Makefile:317: recipe for target '../compile/linux-64-thr/libtachyon/pngfile.o' failed make[6]: [../compile/linux-64-thr/libtachyon/pngfile.o] Error 1 make[6]: Leaving directory '/home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7/src/unix' Makefile:84: recipe for target 'all' failed make[5]: [all] Error 2 make[5]: Leaving directory '/home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7/src/unix' Make-arch:1085: recipe for target 'linux-64-thr' failed make[4]: ** [linux-64-thr] Error 2 make[4]: Leaving directory '/home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7/src/unix'
Error building tachyon-0.98.9.p7
real 0m3.092s user 0m2.898s sys 0m0.372s
Error installing package tachyon-0.98.9.p7
Please email sage-devel (://groups.google.com/group/sage-devel) explaining the problem and including the log file /home/luis/sage/logs/pkgs/tachyon-0.98.9.p7.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, don't just cd to /home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7 and type 'make' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd '/home/luis/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7' && '/home/luis/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell.
New Error March 7
Error building Sage. The following package(s) may have failed to build (not necessarily during this run of 'make all-start'): * package: python3-3.7.3.p1 last build time: Mar 7 13:12 log file: /home/luis/sage/logs/pkgs/python3-3.7.3.p1.log build directory: /home/luis/sage/local/var/tmp/sage/build/python3-3.7.3.p1 It is safe to delete any log files and build directories, but they contain information that is helpful for debugging build problems. WARNING: If you now run 'make' again, the build directory of the same version of the package will, by default, be deleted. Set the environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this. Makefile:31: recipe for target 'all-start' failed make[1]: *** [all-start] Error 1 make[1]: Leaving directory '/home/luis/sage' Makefile:13: recipe for target 'all' failed make: *** [all] Error 2
Thank you for the help.
Can you add the contents of
/home/luis/sage/logs/pkgs/tachyon-0.98.9.p7.log
to your post?Sorry for the delay I added the log file
Hello, @powerengineer! Looks like you should install the
libpng-dev
. One question: Is there any reason why you are trying to compile Sage from scratch? You could download a binary version.Hello, @dsejas , I was recommended to install from scratch from the previous question I asked. Thank you for the help. https://ask.sagemath.org/question/499...
Why is there a repeated failure of packages. I have python, gcc, perl,etc. Is there a way to check if I have the correct version of the dependencies, or is there something wrong with the packages.