LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling hplip source code. (https://www.linuxquestions.org/questions/linux-software-2/compiling-hplip-source-code-299830/)

hscast 03-09-2005 09:02 PM

Compiling hplip source code.
 
I recently setup an HP PSC 2610 printer on my home LAN. I am running Ubuntu Linux (a Debian based distribution) on one of the computers. According to the list on SourceForge this printer requires the hplip backend driver to get all but the FAX function to work. I downloaded the source version 0.8.8, and after stumbling a little I got past the first step of running configure. I am not able to run make. I'll get the following output:

Making all in prnt/hpijs
make[1]: Entering directory `/home/scott/Downloads/hplip-0.8.8/prnt/hpijs'
source='hpijs.cpp' object='hpijs.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ./../../depcomp \
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"hpijs\" -DVERSION=\"2.0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DVERSION=\"2.0.2\" -DHAVE_STRTOD=1 -DHAVE_STRTOL=1 -DHAVE_LIBM=1 -I. -I. -O2 -Wall -DAPDK_LITTLE_ENDIAN -DAPDK_DJ660 -DAPDK_DJ6xx -DAPDK_DJ6xxPhoto -DAPDK_DJ8xx -DAPDK_DJ9xx -DAPDK_DJ9xxVIP -DAPDK_DJ630 -DAPDK_APOLLO2XXX -DAPDK_APOLLO21XX -DAPDK_APOLLO2560 -DAPDK_DJ600 -DAPDK_DJ350 -DAPDK_DJ8x5 -DAPDK_PSP100 -DAPDK_AUTODUPLEX -DAPDK_HIGH_RES_MODES -DAPDK_LJMONO -DAPDK_DJ540 -DAPDK_DJ850 -DAPDK_DJ890 -DAPDK_DJ3320 -DAPDK_LJCOLOR -DAPDK_DJGENERICVIP -DAPDK_BUFFER_SEND -DAPDK_LDL_COMPRESS -DAPDK_EXTENDED_MEDIASIZE -DAPDK_MLC_PRINTER -DAPDK_DJ3600 -DAPDK_LINUX -DAPDK_AUTO_INCLUDE -c -o hpijs.o hpijs.cpp
./../../depcomp: line 504: exec: g++: not found
make[1]: *** [hpijs.o] Error 127
make[1]: Leaving directory `/home/scott/Downloads/hplip-0.8.8/prnt/hpijs'
make: *** [all-recursive] Error 1

Any advice would be greatly appreciated:scratch:

TIA
Scott

abisko00 03-10-2005 02:09 PM

Sounds to me like the c compiler is missing: exec: g++: not found

Sure that ./configure ran without complaining about this?

On my system, g++ comes with the package gcc-c++

hscast 03-10-2005 08:51 PM

I am running Ubuntu a Debian distro. After googling for a while in trying to get configure to work I got the impression that cpp is g++. I found that I had to change the symbolic link from cpp -> /usr/bin/cpp-3.3 to cpp -> /usr/bin/cpp-2.95 to get configure to run. Am I under the wrong impression? When I search the Debian repositories for g++, I get back errors but searching leads me to cpp, so there is gcc/cpp. :scratch:

TIA
Scott

abisko00 03-11-2005 03:16 AM

cpp is the C pre-processor, not the compiler.

Search for c++ (GNU c++)!

hscast 06-16-2006 07:36 PM

Suse posted a newer version of the RPM that fixed the problem, something to do with c++ versions


All times are GMT -5. The time now is 11:41 PM.