Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting data-default-class-0.1.2.0 Starting old-locale-1.0.0.7 Starting dlist-0.8.0.7 Building data-default-class-0.1.2.0 Building old-locale-1.0.0.7 Building dlist-0.8.0.7 Completed old-locale-1.0.0.7 Completed data-default-class-0.1.2.0 Starting data-default-instances-old-locale-0.0.1 Starting data-default-instances-containers-0.0.1 Building data-default-instances-containers-0.0.1 Building data-default-instances-old-locale-0.0.1 Completed dlist-0.8.0.7 Starting data-default-instances-dlist-0.0.1 Building data-default-instances-dlist-0.0.1 Completed data-default-instances-old-locale-0.0.1 Completed data-default-instances-containers-0.0.1 Completed data-default-instances-dlist-0.0.1 Starting data-default-0.7.1.1 Building data-default-0.7.1.1 Completed data-default-0.7.1.1 Starting X11-1.9.1 Failed to install X11-1.9.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/X11-1.9.1-4cKlus0ZOzs1Oj5QUWiq0P.log ): cabal: Entering directory '/tmp/cabal-tmp-787/X11-1.9.1' Configuring X11-1.9.1... configure: WARNING: unrecognized options: --with-compiler checking for gcc... /usr/bin/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 /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking how to run the C preprocessor... /usr/bin/gcc -E 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... yes checking whether to build Xinerama... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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 X11/extensions/Xinerama.h usability... no checking X11/extensions/Xinerama.h presence... no checking for X11/extensions/Xinerama.h... no WARNING: Xinerama headers not found. Building without Xinerama support checking X11/extensions/Xrandr.h usability... no checking X11/extensions/Xrandr.h presence... no checking for X11/extensions/Xrandr.h... no configure: error: X11/extensions/Xrandr.h (from libXrandr) is required cabal: Leaving directory '/tmp/cabal-tmp-787/X11-1.9.1' cabal: Error: some packages failed to install: X11-1.9.1-4cKlus0ZOzs1Oj5QUWiq0P failed during the configure step. The exception was: ExitFailure 1