Closed tiandong19860806 closed 1 year ago
I execute the installation step and command ,as below files:
step 1: 01-intall-automake.txt
step 2: 02-install-make.txt
step 3: 03-install-gcc.txt
step 4: 04-install-glibc.txt
step 5: 05-install-dragonfly.txt
@tiandong19860806 this linux it too old. Try running via docker - maybe it will work.
Hi @romange ,
Thanks, I know deploy dragonfly by using docker is easy and success, Because I want deploy dragonfly by binary file in machine to use less hardware resources.
comment : such as database or queue, use docker to deploy, it maybe consumes more hard disk IO and memory
And I use high version CentOS-8.5 to deploy dragonfly, also happened prblem at the steps 'install gcc-12.2.0 / glibc-2.29'
After I modify step 4, add gcc libary path as below:
export LD_LIBRARY_PATH=/usr/local/mpc/lib:/usr/local/gmp/lib:/usr/local/mpfr/lib:/usr/local/isl/lib
then execute glibc build command 'make -j8', the new result happened problem as below:
MT /home/soft/glibc/glibc-2.29/build/csu/dso_handle.os
libc-tls.c: In function ‘__libc_setup_tls’:
libc-tls.c:209:30: error: array subscript 1 is outside the bounds of an interior zero-length array ‘struct dtv_slotinfo[0]’ [-Werror=zero-length-bounds]
209 | static_slotinfo.si.slotinfo[1].map = main_map;
| ~~~~~^
In file included from ../sysdeps/x86/ldsodefs.h:64,
from ../sysdeps/gnu/ldsodefs.h:46,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from libc-tls.c:21:
../sysdeps/generic/ldsodefs.h:411:7: note: while referencing ‘slotinfo’
411 | } slotinfo[0];
| ^~~~
gcc ../sysdeps/gnu/unwind-resume.c -c -std=gnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes -Wold-style-definition -fmath-errno -fPIC -fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0 -fexceptions -fasynchronous-unwind-tables -ftls-model=initial-exec -I../include -I/home/soft/glibc/glibc-2.29/build/csu -I/home/soft/glibc/glibc-2.29/build -I../sysdeps/unix/sysv/linux/x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/x86/nptl -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include /home/soft/glibc/glibc-2.29/build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=glibc -o /home/soft/glibc/glibc-2.29/build/csu/unwind-resume.os -MD -MP -MF /home/soft/glibc/glibc-2.29/build/csu/unwind-resume.os.dt -MT /home/soft/glibc/glibc-2.29/build/csu/unwind-resume.os
cc1: all warnings being treated as errors
make[2]: [../o-iterator.mk:9: /home/soft/glibc/glibc-2.29/build/csu/libc-tls.o] Error 1
make[2]: Waiting for unfinished jobs....
make[2]: Leaving directory '/home/soft/glibc/glibc-2.29/csu'
make[1]: [Makefile:258: csu/subdir_lib] Error 2
make[1]: Leaving directory '/home/soft/glibc/glibc-2.29'
make: [Makefile:9: all] Error 2
[root@CNT7XDFLY01 build]#
compiling glibc is outside of core specialty of this project :)
Hi @romange ,
Could you give us a suggest, the list of software name and version about source code installing dragonfly.
because we want install dragonfly in machine not docker at some scene.
Thanks.
Discussed in https://github.com/dragonflydb/dragonfly/discussions/441