I'm building XScreensaver (the X11 version) on Mac OSX and I get the following errors while building/compiling it and its deps.
Nov 14, 2011 - #include X11/Xlib.h> #include main() { // Open a display. Test.cpp:1:22: fatal error: X11/Xlib.h: No such file or directory compilation terminated. Checking for gcc. Gcc checking for C compiler default output file name. A.out checking whether the C compiler works. Yes checking whether we are cross compiling. No checking for suffix of executables.
I am using ubuntu 12.04 and trying to install NS2.35 for that matter i downloaded ns-allinone-2.35, unzipped it, started installation, the installation went well until it gave an error message and stopped. The error message is as follows:: fatal error: X11/Xlib.h: No such file or directory compilation terminated. Make:. tk3d.o Error 1 tk8.5.10 make failed! I'm pretty sure that I do have Xlib.h at the right place. I also tried to do this 'sudo apt-get install libx11-dev' but it returned me the following: 'Package libx11-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libx11-dev' has no installation candidate ' in desperate search to an immediate solution. While installing, tcl was installed successfully, but when it came to tk, it gave the following messages:. Build Tk8.5.10 rm -f.a.o libtk.
core errs. #. TAGS.E a.out errors wish tktest lib.exp Tk.rsrc rm -rf Makefile config.status config.cache config.log tkConfig.sh SCRPtk. prototype tkConfig.h.plist Tk.framework./install: 439:./install: autoconf: not found checking for Tcl configuration. Found /home/ahsen/.local/share/Trash/files/ns-allinone-2.3.35/tcl8.5.10/unix/tclConfig.sh checking for existence of /home/ahsen/.local/share/Trash/files/ns-allinone-2.3.35/tcl8.5.10/unix/tclConfig.sh. Loading checking for tclsh. /home/ahsen/.local/share/Trash/files/ns-allinone-2.3.35/bin/tclsh8.5 checking for tclsh in Tcl build directory.
/home/ahsen/.local/share/Trash/files/ns-allinone-2.3.35/tcl8.5.10/unix/tclsh checking whether to use symlinks for manpages. No checking whether to compress the manpages. No checking whether to add a package name suffix for the manpages.
No checking for gcc. Gcc checking for C compiler default output file name. 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 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 limits.h usability. Yes checking limits.h presence. Yes checking for limits.h. Yes checking for stdlib.h.
(cached) yes checking if the compiler understands -pipe. Yes checking for building with threads. No (default) checking how to build libraries. Static checking for ranlib. Ranlib checking if 64bit support is requested. No checking if 64bit Sparc VIS support is requested. No checking if compiler supports visibility 'hidden'.
Yes checking if rpath support is requested. Yes checking system version. Linux-3.2.0-26-generic checking for dlopen in -ldl. Yes checking for ar. Ar checking for build with symbols. No checking for required early compiler flags.
LARGEFILE64SOURCE checking for 64-bit integer type. Using long checking whether byte ordering is bigendian. No checking for fdset in sys/types. Yes checking sys/time.h usability. Yes checking sys/time.h presence. Yes checking for sys/time.h. Yes checking whether time.h and sys/time.h may both be included.
Yes checking for strtod. Yes checking for Solaris2.4/Tru64 strtod bugs. Ok checking for modet. Yes checking for pidt. Yes checking for sizet.
Yes checking for uidt in sys/types.h. Yes checking for intptrt. Yes checking for uintptrt. Yes checking pwgecos in struct pwd.
Yes checking for X. No checking for X11 header files. Couldn't find any! Checking for X11 libraries. Checking for XCreateWindow in -lXwindow. No could not find any! Checking for main in -lXbsd.
No checking whether to try to use XScreenSaver. No checking whether to use xft. No checking whether char is unsigned. Hi tried installing ns-2 2.35 in ubuntu 12.04 n i got the following error.
Kindly help me. TRT=1 -DHAVEUINTPTRT=1 -DHAVESIGNEDCHAR=1 -DHAVELANGINFO=1 -DHAVESYSIOCTLH=1 -DTCLUNLOADDLLS=1 /home/msit123/ns-allinone-2.35/tcl8.5.10/unix/./unix/tclAppInit.c gcc -O2 -pipe -Wl,-export-dynamic tclAppInit.o -L/home/msit123/ns-allinone-2.35/tcl8.5.10/unix -ltcl8.5 -ldl -lieee -lm -Wl,-rpath,/home/msit123/ns-allinone-2.35/lib -o tclsh tcl8.5.10 make succeeded. Installing libtcl8.5.a to /home/msit123/ns-allinone-2.35/lib/ cp: cannot create regular file `/home/msit123/ns-allinone-2.35/lib/#inst.14705#': Permission denied rm: cannot remove `/home/msit123/ns-allinone-2.35/lib/libtcl8.5.a': Permission denied mv: cannot stat `/home/msit123/ns-allinone-2.35/lib/#inst.14705#': No such file or directory ranlib: could not create temporary file whilst writing archive: No more archived files make:. install-binaries Error 1 tcl8.5.10 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform.