gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] Compiling gpsd3.3 under CentOS4.9


From: Greg Chisholm
Subject: [gpsd-users] Compiling gpsd3.3 under CentOS4.9
Date: Thu, 5 Jan 2012 12:48:24 -0800 (PST)


I got gpsd3.3 to build under Centos4.9, with some gymnastics.  Following the
requirements listed in build.txt, I installed chrpath from the Centos "extras"
repository:

  # yum install chrpath

For scons, I used the scons 2.1.0 rpm from http://www.scons.org/download.php,
however, it insists on python >= 2.4 (only 2.3 is available from the repos), so I installed it with '--no-depends':

# rpm -ivh --nodeps scons-2.1.0-1.noarch.rpm

I also tried scons 1.2 (available from the repos, but it bombed).

At this point running scons will choke on line 350:
# scons
scons: Reading SConscript files ...
  File "/root/ntp-gps/gpsd3.3/gpsd-3.3/SConstruct", line 350

    with open("xmltest.xml", "w") as ofp:

            ^

SyntaxError: invalid syntax


It turns out that the SConscript file needs Python 2.5+, so I got the
tarball from http://www.python.org/download/releases/2.7.2/ , configured
it to install in a directory instead of under /usr somewhere.  Didn't
want to find out what else might break if I installed into the system directories and attempted to replace python 2.3 with 2.7. (I tried a
3.x version of Python first, but scons complained that it needed 2.x).

# tar -xzf Python-2.7.2.tgz
# mkdir /root/python/python2.7.2
# cd Python-2.7.2
# ./configure --prefix=/root/python/python2.7.2
# make
# make install

Put this version of python in the front of $PATH
# export PATH=/root/python/python2.7.2/bin:$PATH

The scons build 'almost' worked at this point, I had just one more issue.
My version of gcc didn't recognize the flag '-Wno-missing-field-initializers'
so I removed it from SConstruct (around line 245):

        -Wno-missing-field-initializers -Wcast-align
changed to:
        -Wcast-align

gcc version info: "gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)"


I was able to build and install the binaries, but I didn't get the docs to build. At least gpsd and gpspipe are working, and, because that's
all I care about, I stopped there.


--
+------------------------------------+
| Greg Chisholm                      |
| www.idealab.com                    |
| Idealab Senior Unix Systems Admin  |
| Routing & Switching CCIE #29271    |
+------------------------------------+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]