Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install error #3

Closed
jonahzheng opened this issue May 26, 2017 · 21 comments
Closed

make install error #3

jonahzheng opened this issue May 26, 2017 · 21 comments

Comments

@jonahzheng
Copy link

In file included from vendors.cc:8:0:
vendor_jansson.cc:8:21: fatal error: jansson.h: No such file or directory
#include "jansson.h"
^
compilation terminated.
Makefile:473: recipe for target 'vendors.lo' failed
make[2]: *** [vendors.lo] Error 1
make[2]: Leaving directory '/root/wampcc/jalson/src'
Makefile:404: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/root/wampcc/jalson'
Makefile:405: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

@darrenjs
Copy link
Owner

Hi

Looks like it cannot find the jansson.h file, which is part lib-jansson. When you configured the source code, you would have provided an option like --with-jansson=/opt/jansson-2.7

Can you check the path you provided for jansson? Under that path, there should be a file called include/jansson.h. E.g, if the jansson path is /opt/jansson-2.7 the following file must exist: /opt/jansson-2.7/include/jansson.h

@jonahzheng
Copy link
Author

jonahzheng commented May 31, 2017

@darrenjs thank you

root@debian:~/wampcc# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie

root@debian:~/wampcc# ./fetch_prerequisites.sh
*** fetching GoogleTest 1.8.0 ***

--2017-05-29 05:59:48-- https://github.com/google/googletest/archive/release-1.8.0.tar.gz
Resolving github.com (github.com)... 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/google/googletest/tar.gz/release-1.8.0 [following]
--2017-05-29 05:59:49-- https://codeload.github.com/google/googletest/tar.gz/release-1.8.0
Resolving codeload.github.com (codeload.github.com)... 192.30.255.120, 192.30.255.121
Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1281617 (1.2M) [application/x-gzip]
Saving to: ‘release-1.8.0.tar.gz’

release-1.8.0.tar.gz 100%[==============================================================================================>] 1.22M 285KB/s in 4.8s

2017-05-29 05:59:55 (263 KB/s) - ‘release-1.8.0.tar.gz’ saved [1281617/1281617]

*** fetching jalson 1.0 ***

--2017-05-29 05:59:55-- https://github.com/darrenjs/jalson/archive/v1.0.tar.gz
Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/darrenjs/jalson/tar.gz/v1.0 [following]
--2017-05-29 05:59:56-- https://codeload.github.com/darrenjs/jalson/tar.gz/v1.0
Resolving codeload.github.com (codeload.github.com)... 192.30.255.121, 192.30.255.120
Connecting to codeload.github.com (codeload.github.com)|192.30.255.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘jalson-1.0.tar.gz’

jalson-1.0.tar.gz [ <=> ] 33.09K 164KB/s in 0.2s

2017-05-29 05:59:58 (164 KB/s) - ‘jalson-1.0.tar.gz’ saved [33886]

root@debian:~/wampcc# ./autotools_setup.sh
===== Autoconf setup script =====
warning! libtool not found ... configure stage might fail
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory jalson to autoreconf autoreconf: Entering directory jalson'
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in .'. libtoolize: copying file ./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. libtoolize: copying file m4/libtool.m4'
libtoolize: copying file m4/ltoptions.m4' libtoolize: copying file m4/ltsugar.m4'
libtoolize: copying file m4/ltversion.m4' libtoolize: copying file m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:16: installing './ar-lib'
configure.ac:16: installing './compile'
configure.ac:10: installing './config.guess'
configure.ac:10: installing './config.sub'
configure.ac:13: installing './install-sh'
configure.ac:13: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './COPYING' using GNU General Public License v3 file
Makefile.am: Consider adding the COPYING file to the version control system
Makefile.am: for your code, to avoid questions about which license your project uses
examples/manual_tests/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory jalson' libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, .'.
libtoolize: copying file ./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'.
libtoolize: copying file m4/libtool.m4' libtoolize: copying file m4/ltoptions.m4'
libtoolize: copying file m4/ltsugar.m4' libtoolize: copying file m4/ltversion.m4'
libtoolize: copying file m4/lt~obsolete.m4' configure.ac:24: installing './ar-lib' configure.ac:24: installing './compile' configure.ac:11: installing './config.guess' configure.ac:11: installing './config.sub' configure.ac:14: installing './install-sh' configure.ac:14: installing './missing' lib/Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' autoreconf: Leaving directory .'

root@debian:~/wampcc# make install

======================================
/bin/bash ../libtool --tag=CXX --mode=link g++ -std=c++11 -Wall -g3 -ggdb -O0 -I/opt/jansson-2.7/include -g -O2 -version-info 0:0:0 -o libwampcc_json.la -rpath /var/tmp/wampcc_install/lib json_pointer.lo jalson.lo vendors.lo /opt/jansson-2.7/lib/libjansson.la
libtool: link: cannot find the library /opt/jansson-2.7/lib/libjansson.la' or unhandled argument /opt/jansson-2.7/lib/libjansson.la'
Makefile:446: recipe for target 'libwampcc_json.la' failed
make[2]: *** [libwampcc_json.la] Error 1
make[2]: Leaving directory '/root/wampcc/jalson/src'
Makefile:404: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/root/wampcc/jalson'
Makefile:405: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

====================

@darrenjs
Copy link
Owner

darrenjs commented May 31, 2017

Hi

Thanks for this. So looks like it cannot find /opt/jansson-2.7/lib/libjansson.la. Does that file exist on your machine? Can you try running ls /opt/jansson-2.7/lib/* and copy output here ?

@jonahzheng
Copy link
Author

jonahzheng commented May 31, 2017

I build jansson.
$ ./configure
$ make
$ make install

root@debian:/opt/jansson-2.7# ls lib
ls: cannot access lib: No such file or directory
root@debian:/opt/jansson-2.7# ls src
dump.c error.lo hashtable.lo hashtable_seed.o jansson.h load.lo Makefile.am memory.o strbuffer.c strconv.c utf.h value.lo
dump.lo error.o hashtable.o jansson_config.h jansson_private.h load.o Makefile.in pack_unpack.c strbuffer.h strconv.lo utf.lo value.o
dump.o hashtable.c hashtable_seed.c jansson_config.h.in libjansson.la lookup3.h memory.c pack_unpack.lo strbuffer.lo strconv.o utf.o
error.c hashtable.h hashtable_seed.lo jansson.def load.c Makefile memory.lo pack_unpack.o strbuffer.o utf.c value.c

root@debian:/opt# ls
jansson-2.7 jansson-2.7.tar.gz libuv-v1.10.2 libuv-v1.10.2.tar.gz srs
root@debian:/opt# ls jansson-2.7
aclocal.m4 cmake config.guess config.sub depcomp jansson.pc jansson_private_config.h.in ltmain.sh Makefile.in src test-driver
android CMakeLists.txt config.log configure doc jansson.pc.in libtool Makefile missing stamp-h1
CHANGES compile config.status configure.ac install-sh jansson_private_config.h LICENSE Makefile.am README.rst test
root@debian:/opt#

@darrenjs
Copy link
Owner

Ok. This is generally not the recommended way to build jansson. What you can try is rebuilding jansson again (starting from a clean directory and fresh unzip) but using the prefix option to configure (this tells configure where the final installation is going to live):

./configure --prefix=/opt/jansson-2.7

It's also good practise to avoid building from inside the source directory. Buy try this change to configure, followed by make install. If the libs appear, youll know it has worked.

@jonahzheng
Copy link
Author

jonahzheng commented May 31, 2017

ok, thank you. libuv must be build.
https://github.com/libuv/libuv
$ sh autogen.sh
$ ./configure
$ make
$ make check
$ make install

otherwise has error.

wampcc/io_loop.h:20:16: fatal error: uv.h: No such file or directory
#include <uv.h>
^
compilation terminated.
Makefile:570: recipe for target 'ssl_socket.lo' failed
make[1]: *** [ssl_socket.lo] Error 1
make[1]: Leaving directory '/root/wampcc/lib'
Makefile:405: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

is this info that the build was successful?
root@debian:~/wampcc# make install
............................
libtool: link: g++ -g -O2 -o .libs/test_wamp_rpc test_wamp_rpc.o -L../lib /root/wampcc/lib/.libs/libwampcc.so -L../jalson/src /root/wampcc/jalson/src/.libs/libwampcc_json.so -L/opt/libuv-1.10.2/lib -luv -lcrypto -lpthread ./.libs/libgtest.a -pthread -Wl,-rpath -Wl,/var/tmp/wampcc_install/lib
make[2]: Entering directory '/root/wampcc/test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/wampcc/test'
make[1]: Leaving directory '/root/wampcc/test'
make[1]: Entering directory '/root/wampcc'
make[2]: Entering directory '/root/wampcc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/wampcc'
make[1]: Leaving directory '/root/wampcc'

@darrenjs
Copy link
Owner

Looks like it is still failing, but this time on trying to find the libuv header files.

When you configure libuv, you should use the --prefix option, in a similar way to building jansson.

To test that the wampcc works, try compiling the examples.

cd examples
make

This will likely give errors saying you need to define some environment variables, so define them as required (refer to the paths you have earlier used for libuv, jansson etc). Also see if the admin program has been installed, under the prefix location you used when configure of wampcc.

@jonahzheng
Copy link
Author

I don't know what reason.

libtool: link: g++ -g -O2 -o .libs/test_wamp_rpc test_wamp_rpc.o -L../lib /root/wampcc/lib/.libs/libwampcc.so -L../jalson/src /root/wampcc/jalson/src/.libs/libwampcc_json.so -L/opt/libuv-1.10.2/lib -luv -lcrypto -lpthread ./.libs/libgtest.a -pthread -Wl,-rpath -Wl,/var/tmp/wampcc_install/lib
make[2]: Entering directory '/root/wampcc/test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/wampcc/test'
make[1]: Leaving directory '/root/wampcc/test'
make[1]: Entering directory '/root/wampcc'
make[2]: Entering directory '/root/wampcc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/wampcc'
make[1]: Leaving directory '/root/wampcc'
root@debian:/wampcc# cd examples/
root@debian:
/wampcc/examples# make
makefile:9: *** WAMPCC_HOME undefined - set WAMPCC_HOME to where wampcc was make-installed. Stop.

@darrenjs
Copy link
Owner

darrenjs commented May 31, 2017

If in bash, do something like:

export WAMPCC_HOME=/var/tmp/wampcc_install
export LD_LIBRARY_PATH=${WAMPCC_HOME}/lib:$LD_LIBRARY_PATH

The LD_LIBRARY_PATH change will be needed to actually run the examples.

@jonahzheng
Copy link
Author

ok,thank you.
Recommended as bonefish, add third-party, and auto build.
Uploading 20170606173943.png…

@darrenjs
Copy link
Owner

darrenjs commented Jun 11, 2017

Hi, updated the autotools configure.ac etc, so that some of the example programs will get automatically built. So just need to do the normal configure & make, and some of the examples will be built and then ready to be run. Change is in latest master.

@jonahzheng
Copy link
Author

jonahzheng commented Jun 26, 2017

root@debian:/opt# ls -al
total 3692
drwxr-xr-x 6 root root 4096 Jun 8 09:02 .
drwxr-xr-x 22 root root 4096 Apr 3 12:38 ..
drwxrwxr-x 7 test zdz 4096 Oct 2 2014 jansson-2.7
drwxrwxr-x 9 root root 4096 Jan 10 02:42 libuv-1.10.2
drwxr-xr-x 13 root root 4096 Jun 8 09:06 wampcc

build jansson.
$ ./configure --prefix=/opt/jansson-2.7
$ make
$ make install

export LIBUV_HOME=/opt/libuv-1.10.2
export JANSSON_HOME=/opt/jansson-2.7
export WAMPCC_HOME=/opt/wampcc
cd wampcc/
./fetch_prerequisites.sh
./autotools_setup.sh

./configure --prefix=/var/tmp/wampcc_install --with-libuv=/opt/libuv-1.10.2 --with-jansson=/opt/jansson-2.7

make install
////////////////////////////////////////////.
make[2]: Entering directory '/opt/wampcc/test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/opt/wampcc/test'
make[1]: Leaving directory '/opt/wampcc/test'
Making install in examples
make[1]: Entering directory '/opt/wampcc/examples'
make[1]: *** No rule to make target 'install'. Stop.
make[1]: Leaving directory '/opt/wampcc/examples'
Makefile:405: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1cd
/////////////////////////////////////////////

@darrenjs
Copy link
Owner

darrenjs commented Jun 26, 2017

Hi, thanks for this. I think its worth writing up a step by step guide.

From the above, I can see that those steps have the configure command being executed from inside
the wampcc source directory, whereas it only seems to work if executed outside of there.

So, lets say that the intention is to install wampcc under /opt (just like jansson & libuv have been, which is a good pattern). Then commands can be like:

# create wampcc base directories
mkdir /opt/wampcc
mkdir /opt/wampcc/build

# clone wampcc into 'src' directory
cd /opt/wampcc
git clone https://github.com/darrenjs/wampcc.git  src

# fetch prerequisities into source directory
cd /opt/wampcc/src
./fetch_prerequisites.sh
./autotools_setup.sh

# configure the make files, from inside the 'build' directory, and set the
# install prefix to be '/opt/wampcc'
cd /opt/wampcc/build
../src/configure --prefix=/opt/wampcc --with-libuv=/opt/libuv-1.10.2 --with-jansson=/opt/jansson-2.7

# compile
make -j

# test that 'basic_embedded_router' was automatically built (only a couple of
# the examples get built automatically)
./examples/basic_embedded_router  55533

# finally, install the wampcc header & libs (into /opt/wampcc)
make install

# check the `admin` command was installed, this will be successful if the   
# example router is still running
/opt/wampcc/bin/admin 127.0.0.1 55533 -c greeting

# optionally, can now delete the `build` directory
rm -rf /opt/wampcc/build

# Now try to build all the examples, using the installed header & library
# files. This how custom application would build against wampcc.
export LIBUV_HOME=/opt/libuv-1.10.2
export JANSSON_HOME=/opt/jansson-2.7
export WAMPCC_HOME=/opt/wampcc
cd /opt/wampcc/src/examples
make

# Before attempting to start any of the example programs, set the `LD_LIBRARY_PATH` so that 
# it picks up the libuv, jansson & wampcc libraries
export LD_LIBRARY_PATH=${WAMPCC_HOME}/lib:${JANSSON_HOME}/lib:${LIBUV_HOME}/lib

@sashakh
Copy link

sashakh commented Dec 8, 2017

Hi! Seems to be related to the topic.
With autotools build even when libuv and jansson are installed in standard way, configuration doesn't detect it and complains. Please review and apply if appropriate the patch below. It fixes the issue for me.
ac.patch.txt

@sashakh
Copy link

sashakh commented Dec 8, 2017

Another issue it is 'makefile' placed in examples - it has higher priority for 'make' program and requires some extra stuff to build normally (which is annoying). With regular automake's Makefile the directory build is fine. I would suggest to rename this 'makefile' for custom uses. Thanks!

@darrenjs
Copy link
Owner

darrenjs commented Dec 9, 2017

Hi. For the makefile in 'exampes', how do you mean it takes higher priority? During an autotools build, this makefile is skipped over. The intention of this file is to be an example makefile for building the examples, after wampcc has been installed.

@sashakh
Copy link

sashakh commented Dec 9, 2017

Hi @darrenjs !

For the makefile in 'exampes', how do you mean it takes higher priority?

When 'make' program is invoked it looks for its default makefile in order: makefile, Makefie (https://www.gnu.org/software/make/manual/html_node/Makefile-Names.html)

During an autotools build, this makefile is skipped over.

Not really, 'makefile' is used first instead of automake's 'Makefile':

$ make 
make  all-recursive
make[1]: Entering directory '/home/sashak/src/wampcc'
Making all in libs
make[2]: Entering directory '/home/sashak/src/wampcc/libs'
Making all in json
make[3]: Entering directory '/home/sashak/src/wampcc/libs/json'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/sashak/src/wampcc/libs/json'
Making all in wampcc
make[3]: Entering directory '/home/sashak/src/wampcc/libs/wampcc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/sashak/src/wampcc/libs/wampcc'
make[3]: Entering directory '/home/sashak/src/wampcc/libs'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/sashak/src/wampcc/libs'
make[2]: Leaving directory '/home/sashak/src/wampcc/libs'
Making all in utils
make[2]: Entering directory '/home/sashak/src/wampcc/utils'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/sashak/src/wampcc/utils'
Making all in tests
make[2]: Entering directory '/home/sashak/src/wampcc/tests'
Making all in json
make[3]: Entering directory '/home/sashak/src/wampcc/tests/json'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/sashak/src/wampcc/tests/json'
Making all in wampcc
make[3]: Entering directory '/home/sashak/src/wampcc/tests/wampcc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/sashak/src/wampcc/tests/wampcc'
make[3]: Entering directory '/home/sashak/src/wampcc/tests'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/sashak/src/wampcc/tests'
make[2]: Leaving directory '/home/sashak/src/wampcc/tests'
Making all in examples
make[2]: Entering directory '/home/sashak/src/wampcc/examples'
makefile:21: *** WAMPCC_HOME undefined - set WAMPCC_HOME to where wampcc was make-installed.  Stop.
make[2]: Leaving directory '/home/sashak/src/wampcc/examples'
Makefile:426: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/sashak/src/wampcc'
Makefile:358: recipe for target 'all' failed
make: *** [all] Error 2

The intention of this file is to be an example makefile for building the examples, after wampcc has been installed.

That is understood. The problem is that for normal installation 'Makefile' should be used there.

The simple solution would be to rename 'makefile' to something like 'makefile.examples' and after build and installation to create symbolic link:

ln -s makefile.examples makefile

, and work as you desire.

Another option would be to remove examples/ from SUBDIRS of top level Makefile.am, IOW to exclude it from the build process. But in this case your users will need to bother with 'makefile''s definitions manually.

darrenjs added a commit that referenced this issue Dec 10, 2017
@darrenjs
Copy link
Owner

Hi, okay, I see this happens when configure has been executed inside the source tree. I renamed the makefile. And incorparated your patch also. Many thanks for the feedback.

@sashakh
Copy link

sashakh commented Dec 10, 2017

Thank you for the great project and quick response. )

@jonahzheng
Copy link
Author

jonahzheng commented Jul 4, 2018

root@ubuntu:/opt/wampcc/build$ sudo ../src/configure --prefix=/opt/wampcc --with-libuv=/opt/libuv-1.10.2 --with-jansson=/opt/jansson-2.7
root@ubuntu:/opt/wampcc/build$ make install
Making install in libs
make[1]: Entering directory '/opt/wampcc/build/libs'
Making install in json
make[2]: Entering directory '/opt/wampcc/build/libs/json'
depbase=echo vendors.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/libs/json -I../.. -I../../../src/include -I../../../src/3rdparty/msgpack-c/include -I/opt/jansson-2.7/include -std=c++11 -Wall -g -O2 -MT vendors.lo -MD -MP -MF $depbase.Tpo -c -o vendors.lo ../../../src/libs/json/vendors.cc &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/libs/json -I../.. -I../../../src/include -I../../../src/3rdparty/msgpack-c/include -I/opt/jansson-2.7/include -std=c++11 -Wall -g -O2 -MT vendors.lo -MD -MP -MF .deps/vendors.Tpo -c ../../../src/libs/json/vendors.cc -fPIC -DPIC -o .libs/vendors.o
In file included from ../../../src/libs/json/vendors.cc:8:0:
../../../src/libs/json/vendor_jansson.h:10:66: fatal error: jansson.h: No such file or directory
compilation terminated.
Makefile:492: recipe for target 'vendors.lo' failed
make[2]: *** [vendors.lo] Error 1
make[2]: Leaving directory '/opt/wampcc/build/libs/json'
Makefile:374: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/opt/wampcc/build/libs'
Makefile:426: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

root@ubuntu:/opt$ ls -al
total 464
drwxr-xr-x 7 root root 4096 Jul 5 05:04 .
drwxr-xr-x 23 root root 4096 Jul 3 07:32 ..
drwxrwxr-x 7 fxkjroot fxkjroot 4096 Oct 2 2014 jansson-2.7
drwxr-xr-x 9 root root 4096 Jul 5 05:01 libuv-1.10.2
drwxr-xr-x 4 root root 4096 Jul 5 04:52 wampcc

@darrenjs
Copy link
Owner

darrenjs commented Jul 5, 2018

So it cannot find jansson.h. It looks like you have installed jansson under /opt/jansson-2.7 . The header file should thus be at: /opt/jansson-2.7/include/jansson.h ... if you have installed jansson using the standard configure approach. It's either not there, or, the root user does not have permission to access it; I note that the jansson-2.7 folder is owned by a different user fxkjroot .... that's possibly the reason.

Note that it's not generally recommended to do build/test/install as root etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants