Cannot build HPLIP on RHEL7.5
Red Hat Enterprise Linux Workstation release 7.5 (Maipo)
gcc-c++
Using hplip-3.18.6.run file, it runs until the "BUILD AND INSTALL" step and then fails:
BUILD AND INSTALL
-----------------
Running './configure --with-
Please wait, this may take several minutes... error: Configure failed with error: General/unknown error
error: output = checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/tmp/hplip/
configure: error: C++ compiler cannot create executables
See `config.log' for more details
Some additional details from config.log:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2663: checking for a BSD-compatible install
configure:2731: result: /bin/install -c
configure:2742: checking whether build environment is sane
configure:2792: result: yes
configure:2933: checking for a thread-safe mkdir -p
configure:2972: result: /bin/mkdir -p
configure:2985: checking for gawk
configure:3001: found /bin/gawk
configure:3012: result: gawk
configure:3023: checking whether make sets $(MAKE)
configure:3045: result: yes
configure:3216: checking for g++
configure:3232: found /bin/g++
configure:3243: result: g++
configure:3270: checking for C++ compiler version
configure:3279: g++ --version >&5
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3290: $? = 0
configure:3279: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=
ugurl=http://
enable-
le-gnu-
jc,obj-
=/builddir/
uild/BUILD/
ith-tune=generic --with-
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
configure:3290: $? = 0
configure:3279: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3290: $? = 4
configure:3279: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3290: $? = 4
configure:3310: checking whether the C++ compiler works
configure:3332: g++ conftest.cpp >&5
/usr/lib/
collect2: error: ld returned 1 exit status
configure:3336: $? = 1
configure:3374: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "HP Linux Imaging and Printing"
| #define PACKAGE_TARNAME "hplip"
| #define PACKAGE_VERSION "3.18.6"
| #define PACKAGE_STRING "HP Linux Imaging and Printing 3.18.6"
| #define PACKAGE_BUGREPORT "3.18.6"
| #define PACKAGE_URL ""
| #define PACKAGE "hplip"
| #define VERSION "3.18.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3379: error: in `/tmp/hplip/
configure:3381: error: C++ compiler cannot create executables
See `config.log' for more details
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Eric Masshardt for more information if necessary.