make fails on missing json.h ?

17 views
Skip to first unread message

=JeffH

unread,
Apr 22, 2013, 1:42:39 PM4/22/13
to certificate-...@googlegroups.com
Hi,

I'd previously been able to cleanly compile and test the CT code
<https://code.google.com/p/certificate-transparency/> (on ubuntu 10.04), like so
(after working thru installing the prerequisites listed in
certificate-transparency/src/README)..

hg pull https://code.google.com/p/certificate-transparency/
hg update

make GTESTDIR=/usr/local/src/google/gtest-1.6.0

However, when i circled back around to this yesterday, and re-did the above
sequence (a fair number of updated modules were sucked down), I noted that we
now need to install some new dependencies: curlpp, JSON-C (i.e., make failed,
I re-read the README and noted the new dependencies noted in items 5a & 5b,
fetched them, built 'em)

So the only issues I noted were that the install of json-c apparently didn't
copy json_object_iterator.h to /usr/local/include/json

Once I fixed that, CT completed building. running test didn't work straight
away, on my system I had to ensure I'd done this..

setenv LD_LIBRARY_PATH /usr/local/lib

..and then the make tests ran and everything passed (I haven't this time yet
played with the end-to-end server-client tests), but I haven't tried
client/upload_server_cert.sh, or installed the python modules pyasn1 and
pyasn1-modules. It appears I need to find and install "easy_install" ?

thanks,

=JeffH













Ben Laurie

unread,
Apr 23, 2013, 6:24:01 AM4/23/13
to certificate-...@googlegroups.com
On 22 April 2013 18:42, =JeffH <Jeff....@kingsmountain.com> wrote:
> Hi,
>
> I'd previously been able to cleanly compile and test the CT code
> <https://code.google.com/p/certificate-transparency/> (on ubuntu 10.04),
> like so (after working thru installing the prerequisites listed in
> certificate-transparency/src/README)..
>
> hg pull https://code.google.com/p/certificate-transparency/
> hg update
>
> make GTESTDIR=/usr/local/src/google/gtest-1.6.0
>
> However, when i circled back around to this yesterday, and re-did the above
> sequence (a fair number of updated modules were sucked down), I noted that
> we now need to install some new dependencies: curlpp, JSON-C (i.e., make
> failed, I re-read the README and noted the new dependencies noted in items
> 5a & 5b, fetched them, built 'em)
>
> So the only issues I noted were that the install of json-c apparently didn't
> copy json_object_iterator.h to /usr/local/include/json

I guess that's a problem that needs to be reported to json-c?

> Once I fixed that, CT completed building. running test didn't work straight
> away, on my system I had to ensure I'd done this..
>
> setenv LD_LIBRARY_PATH /usr/local/lib

I'll update the README to note this might be needed. Thanks.

> ..and then the make tests ran and everything passed (I haven't this time yet
> played with the end-to-end server-client tests), but I haven't tried
> client/upload_server_cert.sh, or installed the python modules pyasn1 and
> pyasn1-modules. It appears I need to find and install "easy_install" ?

On my dev platform (FreeBSD) easy_install comes with Python, it seems.
But I guess that's not universally install. I believe the package is
helpfully called ez_install, not easy_install! You don't have to
install them this way, your platform may have a package for them, or
you can presumably do it from source.

>
> thanks,
>
> =JeffH
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "certificate-transparency" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to certificate-transp...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Emilia Kasper

unread,
Apr 23, 2013, 9:01:24 AM4/23/13
to certificate-...@googlegroups.com
It's setuptools on Linux, in fact:

You can use whatever package manager for Python, I've just found easy_install really convenient.
Reply all
Reply to author
Forward
0 new messages