Mon 13 Feb 2012 08:32:02 PM UTC, comment #4:
This bug has not been fixed yet! I just tried to compile gpsd 3.4 in Ubuntu 11.10 x64.
Error:
Package tinfo was not found in the pkg-config search path.
Perhaps you should add the directory containing `tinfo.pc'
to the PKG_CONFIG_PATH environment variable
Package 'tinfo', required by 'ncurses', not found
OSError: 'pkg-config --cflags --libs ncurses' exited 1:
Helpful URL: https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/259139
./ncurses5-config --version
5.9.20110404
|
Sun 04 Dec 2011 07:31:21 AM UTC, comment #2:
I finally noticed the bug list, have this same exact problem with Ubuntu 11.10
tried on different machines and it didnt work. copying tinfo.pc file into the /usr/lib did help, but did not compile to the end. Right now it stops at: (much more text but this is the last bunch of lines)
gcc -o monitor_nmea.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_nmea.c
gcc -o monitor_oncore.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_oncore.c
gcc -o monitor_sirf.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_sirf.c
gcc -o monitor_superstar2.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_superstar2.c
gcc -o monitor_tnt.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_tnt.c
gcc -o monitor_ubx.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_ubx.c
gcc -o monitor_garmin.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_garmin.c
gcc -o gpsmon -Wl,-rpath=/home/bydr/gpsd -Wl,-rpath=//usr/local/lib gpsmon.o monitor_italk.o monitor_nmea.o monitor_oncore.o monitor_sirf.o monitor_superstar2.o monitor_tnt.o monitor_ubx.o monitor_garmin.o -L. -L/usr/local/lib -L/usr/lib -lrt -lgpsd -lgps -lncurses -ltinfo
gcc -pthread -o gpsclient-py_2_7_2_final_0.so -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.7 gpsclient.c
gpsclient.c:7:20: fatal error: Python.h: No such file or directory
compilation terminated.
scons: *** [gpsclient-py_2_7_2_final_0.so] Error 1
scons: building terminated because of errors.
what is needed to make this compile?
|
Tue 01 Nov 2011 12:47:47 AM UTC, original submission:
I received this error while trying to build gpsd 3.3. The error turned out to be harmless. While the error is probably part of the Ubuntu packaging system, I figured to report it here in case there's a simple workaround gpsd can include. (Mostly motivated by the recent commit related to tinfo, http://git.savannah.gnu.org/cgit/gpsd.git/commit/?id=52862f3)
Trying to build gpsd on Ubuntu 11.10 x64, with all build dependencies installed, stops with the following error:
`Package tinfo was not found in the pkg-config search path.
Perhaps you should add the directory containing `tinfo.pc'
to the PKG_CONFIG_PATH environment variable
Package 'tinfo', required by 'ncurses', not found
OSError: 'pkg-config --cflags --libs ncurses' exited 1:
File "/home/garrett/Downloads/gpsd-3.3/SConstruct", line 827:
parse_flags=gpsdlibs + ncurseslibs)
File "/usr/lib/scons/SCons/Environment.py", line 258:
return MethodWrapper.__call__(self, target, source, args, *kw)
File "/usr/lib/scons/SCons/Environment.py", line 222:
return self.method(nargs, *kwargs)
File "/usr/lib/scons/SCons/Builder.py", line 631:
env = env.Override(env_kw)
File "/usr/lib/scons/SCons/Environment.py", line 635:
if merges: env.MergeFlags(merges)
File "/usr/lib/scons/SCons/Environment.py", line 802:
args = self.ParseFlags(args)
File "/usr/lib/scons/SCons/Environment.py", line 788:
do_parse(arg)
File "/usr/lib/scons/SCons/Environment.py", line 669:
for t in arg: do_parse(t)
File "/usr/lib/scons/SCons/Environment.py", line 674:
arg = self.backtick(arg[1:])
File "/usr/lib/scons/SCons/Environment.py", line 593:
raise OSError("'%s' exited %d" % (command, status))`
I have verified that libtinfo-dev is installed; however, the file tinfo.pc simply doesn't exist. When I pasted the following into /usr/lib/pkgconfig/tinfo.pc, scons was able to successfully build gpsd:
`prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404
Name: tinfo
Description: ncurses 5.9 add-on library
Version: ${version}
Requires:
Libs: -ltinfo
Cflags: `
Because the tinfo library existed, simply adding this file fixed the build and gpsd was then able to run.
Regards,
Garrett
|