Difference between revisions of "Error messages and their solutions"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 209: Line 209:
 
  cp /usr/include/glib-2.0/glib.h /usr/include/
 
  cp /usr/include/glib-2.0/glib.h /usr/include/
 
  cp -pr /usr/include/glib-2.0/glib /usr/include/
 
  cp -pr /usr/include/glib-2.0/glib /usr/include/
 +
 +
=== libXaw ===
 +
Symptom (in this case from xawtv):
 +
/usr/bin/ld: cannot find -lXaw
 +
Solution (in this case for Ubuntu 11.10):
 +
apt-get install libxaw7-dev
  
 
=== libXext ===
 
=== libXext ===

Revision as of 12:28, 11 December 2011

a52

Problem, in this case from vlc:

configure: error: Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin.

Solution, in this case for SUSE 11.3:

yast -i liba52-devel

atk

Problem, in this case from gqcam:

/usr/include/gtk/gtkwidget.h:40:21: fatal error: atk/atk.h: No such file or directory
compilation terminated.
make: *** [gqcam.o] Error 1

Solution, in this case for SUSE Linux 11.3:

cp -r /usr/include/atk-1.0/atk/ /usr/include/

C compiler

~/freeciv-2.1.9 # ./configure 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
linux-zcx2:~/freeciv-2.1.9 # gcc
If 'gcc' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf gcc
linux-zcx2:~/freeciv-2.1.9 # yast -i gcc-c++

C++ compiler

Problem e.g.:

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

Solution, e.g. under Debian:

aptitude install build-essential

capabilities.h

Problem (in this case from vdr)

vdr.c:35:28: fatal error: sys/capability.h: No such file or directory 

Solution (in this case for SUSE 11.3)

yast -i libcap-devel

cairo

Problem, in this case from gqcam:

/usr/include/gdk/gdkscreen.h:31:19: fatal error: cairo.h: No such file or directory

Solution, in this case for SUSE 11.3:

cp /usr/include/cairo/* /usr/include/

DBUS

Problem, in this case from vlc:

configure: error: Couldn't find DBus >= 1.0.0, install libdbus-dev ?

Solution, in this case for SUSE 11.3:

yast -i dbus-1-devel

fribidi

Problem, in this case from vlc:

configure: error: Package requirements (fribidi) were not met: 

No package 'fribidi' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FRIBIDI_CFLAGS
and FRIBIDI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Solution, in this case for SUSE 11.3:

yast -i fribidi-devel

gcrypt

Problem, in this case from vlc:

configure: error: libgcrypt version 1.1.94 or higher not found. Install libgcrypt or use --disable-libgcrypt. Have a nice day.

Solution, in this case for SUSE 11.3:

yast -i libgcrypt-devel

gdk

Problem, in this case from gqcam:

/usr/include/gtk/gtk.h:32:21: fatal error: gdk/gdk.h: No such file or directory

Solution, in this case for SUSE Linux 11.3:

cp -pr /usr/include/gtk-2.0/gdk /usr/include/

gdkconfig

Problem:

/usr/include/gdk/gdktypes.h:55:23: fatal error: gdkconfig.h: No such file or directory
compilation terminated.
make: *** [gqcam.o] Error 1

Solution:

linux-noqb:~/gqcam-0.8 # cd /usr/include/
linux-noqb:/usr/include # find -iname "gdkconfig*"
linux-noqb:/usr/include # cd /usr/lib64/
linux-noqb:/usr/lib64 # find -iname "gdkconfig*"
./gtk-2.0/include/gdkconfig.h
linux-noqb:/usr/lib64 # cp /usr/lib64/gtk-2.0/include/gdkconfig.h /usr/include/

gdk-pixbuf

Problem:

/usr/include/gdk/gdkpixbuf.h:37:35: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
compilation terminated.
make: *** [gqcam.o] Error 1

Solution:

linux-noqb:~/gqcam-0.8 # cd /usr/include/
linux-noqb:/usr/include # find -iname "gdk-pixbuf*"
./gtk-2.0/gdk-pixbuf
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h
./gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h
./gtk-2.0/gdk-pixbuf-xlib
./gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h
./gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h
linux-noqb:/usr/include # cp -r /usr/include/gtk-2.0/gdk-pixbuf /usr/include/

gio

Problem, in this case from gqcam:

/usr/include/gdk/gdkapplaunchcontext.h:30:21: fatal error: gio/gio.h: No such file or directory

Solution, in this case for SUSE Linux 11.3:

cp -r /usr/include/glib-2.0/gio/ /usr/include/

glibconfig

Problem, in this case from gqcam:

/usr/include/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory

Solution, in this case for SUSE 11.3:

cp /usr/lib64/glib-2.0/include/glibconfig.h /usr/include/

gmodule

Problem, in this case from gqcam:

/usr/include/gio/giomodule.h:31:21: fatal error: gmodule.h: No such file or directory

Solution, in this case for SUSE 11.3:

cp /usr/include/glib-2.0/gmodule.h /usr/include/

gtk

Problem (in this case from kino):

checking for GTK2... configure: error: Package requirements (gthread-2.0 libglade-2.0 >= 2.5.0 gtk+-2.0 >= 2.6) were not met: 

No package 'libglade-2.0' found

Solution (in this case for SUSE 11.3):

yast -i libglade2-devel

gtk-config

Problem (in this case from gqcam):

/bin/sh: gtk-config: command not found
gqcam.c:32:21: fatal error: gtk/gtk.h: No such file or directory

Solution (in this case for SUSE 11.3):

  • install gtk 2.20
  • copy the header files
cp -pr /usr/include/gtk-2.0/gtk/ /usr/include

gtk-window-dialog

frontend.c:411:44: error: ‘GTK_WINDOW_DIALOG’ undeclared (first use in this function)
frontend.c:411:44: note: each undeclared identifier is reported only once for each function it appears in
make: *** [frontend.o] Error 1
linux-noqb:~/gqcam-0.8 # cd
[1]+  Exit 16                 yast2 sw_single  (wd: ~/gqcam-0.8)
(wd now: ~)
linux-noqb:~ # cd gtk+-2.20.1/
linux-noqb:~/gtk+-2.20.1 # grep -ri "gtk_window_dialog" *
ChangeLog.pre-1-0:      GTK_WINDOW_DIALOG as a destination for reparenting the child of
ChangeLog.pre-2-0:      * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
ChangeLog.pre-2-0:      * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
ChangeLog.pre-2-0:      GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
ChangeLog.pre-2-0:      * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG

KDE

Problem:

  ERROR: Could not find KDE4 kde4-config

Solution, e.g. under Debian:

apt-get install kdelibs5-dev

liblavdisplay

Problem, e.g. when compiling mjpegtools:

./.libs/liblavplay.so: undefined reference to `XOpenDisplay'

Solution, e.g. under SUSE:

yast -i libSDL-devel

ncurses

Problem (in this case from xawtv):

Oops: (n)curses library not found.  You need this one, please install.

Solution (in this case for SUSE 11.3):

yast -i ncurses-devel

jpeg

Problem (in this case from xawtv):

Oops:   jpeg library not found.  You need this one, please install.

Solution (in this case for SUSE 11.3):

yast -i libjpeg-devel

glib

Problem (in this case from xawtv):

error: glib.h: No such file or directory

Solution (in this case for SUSE 11.3):

yast -i glib2-devel
cp /usr/include/glib-2.0/glib.h /usr/include/
cp -pr /usr/include/glib-2.0/glib /usr/include/

libXaw

Symptom (in this case from xawtv):

/usr/bin/ld: cannot find -lXaw

Solution (in this case for Ubuntu 11.10):

apt-get install libxaw7-dev

libXext

Symptom (in this case from xawtv):

/usr/bin/ld: cannot find -lXext

Solution (in this case for Ubuntu 11.10):

apt-get install libxext-dev

libxml

Problem (in this case from xawtv):

libxml/parser.h: No such file or directory

Solution (in this case for SUSE 11.3):

yast -i libxml-devel

libxml 2

Problem (in this case from xawtv):

Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found

Solution (in this case for SUSE 11.3):

yast -i libxml2-devel

libpng

Problem (in this case from xawtv):

/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make: *** [console/scantv] Error 1

Solution (in this case for SUSE 11.3):

linux-fhbd:~/xawtv # yast -i libpng14-devel

glib2

Problem (in this case from xawtv):

/usr/include/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
compilation terminated.
make: *** [common/dvb-monitor.o] Error 1
linux-fhbd:~/xawtv # rpm -ql glib2-devel|grep config
[...]
linux-fhbd:~/xawtv # cp /usr/lib64/glib-2.0/include/glibconfig.h /usr/include/

lua

Problem, in this case from vlc:

configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.

Solution, in this case for SUSE 11.3:

yast -i lua-devel

pango

/usr/include/gdk/gdktypes.h:37:25: fatal error: pango/pango.h: No such file or directory compilation terminated. make: *** [gqcam.o] Error 1 linux-noqb:~/gqcam-0.8 # cd /usr/include/ linux-noqb:/usr/include # find -iname "pango*" ./pango-1.0 ./pango-1.0/pango ./pango-1.0/pango/pango-break.h ./pango-1.0/pango/pangoft2.h ./pango-1.0/pango/pango.h ./pango-1.0/pango/pangox.h ./pango-1.0/pango/pango-fontset.h ./pango-1.0/pango/pangoxft-render.h ./pango-1.0/pango/pango-renderer.h ./pango-1.0/pango/pango-glyph.h ./pango-1.0/pango/pango-tabs.h ./pango-1.0/pango/pango-ot.h ./pango-1.0/pango/pango-fontmap.h ./pango-1.0/pango/pangofc-fontmap.h ./pango-1.0/pango/pango-matrix.h ./pango-1.0/pango/pango-gravity.h ./pango-1.0/pango/pango-glyph-item.h ./pango-1.0/pango/pangocairo.h ./pango-1.0/pango/pango-layout.h ./pango-1.0/pango/pangofc-font.h ./pango-1.0/pango/pango-types.h ./pango-1.0/pango/pango-context.h ./pango-1.0/pango/pangoxft.h ./pango-1.0/pango/pango-utils.h ./pango-1.0/pango/pango-modules.h ./pango-1.0/pango/pangofc-decoder.h ./pango-1.0/pango/pango-script.h ./pango-1.0/pango/pango-features.h ./pango-1.0/pango/pango-bidi-type.h ./pango-1.0/pango/pango-item.h ./pango-1.0/pango/pango-language.h ./pango-1.0/pango/pango-attributes.h ./pango-1.0/pango/pango-engine.h ./pango-1.0/pango/pango-enum-types.h ./pango-1.0/pango/pango-coverage.h ./pango-1.0/pango/pango-font.h Solution:

linux-noqb:/usr/include # cp -r /usr/include/pango-1.0/pango/ /usr/include/

zlib

linux-zcx2:~/freeciv-2.1.9 # ./configure 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 ANSI C... none needed
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for egrep... 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 for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
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 dependency style of g++... none
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for ar... ar
checking for uname... uname
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for libcharset... no
checking for nl_langinfo and CODESET... yes
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... (cached) yes
checking for working iconv... (cached) yes
checking for iconv declaration... (cached) 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... (cached) yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for GNU gettext in libc... yes
checking for dcgettext... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... no
checking for bison... no
checking for catalogs to be installed...  ar cs ca da de el en_GB eo es et fa fi fr he hu it ja ko lt nl nb no pl pt pt_BR ro ru sv tr uk zh_CN
checking for ngettext in -lc... yes
checking whether libc's ngettext works at runtime... yes
checking for C99 variadic macros... yes
checking for C99 variable arrays... yes
checking for C99 initializers... yes
checking for stdint.h... (cached) yes
checking for C99 stdint.h... yes
checking for gzgets in -lz... no
configure: error: Could not find zlib library.
linux-zcx2:~/freeciv-2.1.9 # yast -i zlib-devel

See also