Tianyu Wei
08/29/2021, 6:57 PMArman Avetisyan
08/29/2021, 9:03 PMTianyu Wei
08/29/2021, 11:44 PMArman Avetisyan
08/30/2021, 7:52 AMArman Avetisyan
08/30/2021, 7:53 AMTim Edwards
08/30/2021, 1:29 PMtcsh
and m4
. Also: If you tried to run make
at any time before you installed tcl-devel
and tk-devel
, then you will need to do make clean
before re-running configure
. If that doesn't work, then please send the output of configure
(file, please, not a screenshot).Tianyu Wei
08/30/2021, 2:36 PMsudo make clean
and ./configure
:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... 8
checking whether byte ordering is bigendian... no
checking for ANSI C header files... (cached) yes
checking for setenv... yes
checking for putenv... yes
checking for vfork... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking param.h usability... no
checking param.h presence... no
checking for param.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for va_copy... yes
checking for __va_copy... yes
checking for gcore... /usr/bin/gcore
checking for csh... /usr/bin/csh
checking for python3... /usr/bin/python3
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... noTianyu Wei
08/30/2021, 2:37 PMTianyu Wei
08/30/2021, 2:37 PMmake
and make install
seem to be successful except for the 2 warnings (after make
):
grTkCommon.c7615: warning: initialization from incompatible pointer type [enabled by default]
grTkCommon.c7615: warning: (near initialization for 'tkLayerImageType.createProc') [enabled by default]
But when I tried to run make tut1
I received the following output:
Application initialization failed: no display name and no $DISPLAY environment variable
Error in startup script: no display name and no $DISPLAY environment variable
while executing
"load /usr/lib64/tk8.5/../libtk8.5.so Tk"
("package ifneeded Tk 8.5.13" script)
invoked from within
"package require Tk $tcl_version"
invoked from within
"if {$tcl_version < 8.0} {
return -code error "tkcon requires at least Tcl/Tk8"
} else {
# Prevent breaking on version 8.5.2
# package requ..."
(file "/usr/local/lib/magic/tcl/tkcon.tcl" line 44)Tim Edwards
08/30/2021, 2:43 PMmagic tut1
not make tut1
, above.
The no display name
error indicates you are not running in an X11 environment. Are you doing this on a virtual machine or something?Tianyu Wei
08/30/2021, 2:45 PMmagic tut1
. I am doing it on the remote Google Cloud compute engine.Tim Edwards
08/30/2021, 2:47 PMmagic -dnull -noconsole
and do everything from the command-line prompt. If you want a full layout GUI, you will need to figure out how to run applications with an X11 server. I'm not familiar with Google Cloud services so I can't advise you how to do this.Tianyu Wei
08/30/2021, 2:52 PM