libX11-dev doesn't exist, should replace with libx11-dev

柳鲲鹏 quantum6 at yeah.net
Sat Jul 3 00:05:59 UTC 2021


My OS is 
Linux nanjing 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


1, run command: configure
configure: error: Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). You might be able to fix this by running 'sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev'.


2, run command: sudo apt-get install libX11-dev

E: Unable to locate package libX11-dev




3, run command: sudo apt-get install libx11-dev

libx11-dev is already the newest version (2:1.6.4-3ubuntu0.4).



File: common/autoconf/generated-configure.sh
about 3881 line, we should modify libX11-dev To libx11-dev


Here is hg diff:
diff -r f7f1e6a9ee97 common/autoconf/help.m4
--- a/common/autoconf/help.m4   Mon Jun 28 19:48:48 2021 +0100
+++ b/common/autoconf/help.m4   Sat Jul 03 08:04:47 2021 +0800
@@ -112,7 +112,7 @@
     pulse)
       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
     x11)
-      PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
+      PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
     ccache)
       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
   esac


Thanks,.
Liu Kunpeng


More information about the jdk8u-dev mailing list