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

Ubuntu 16.04 Compilation log4cplus #2221

Open
cvenet30980 opened this issue Oct 9, 2017 · 4 comments
Open

Ubuntu 16.04 Compilation log4cplus #2221

cvenet30980 opened this issue Oct 9, 2017 · 4 comments

Comments

@cvenet30980
Copy link

I try compile with the script for ubuntu 16.04 but
with the log4cplus version 1.0.4, error on csvreader_test link csv.cpp:203 : référence indéfinie vers « log4cplus::Logger::getInstance(s
with the log4cplus version 1.1.9, error later always with reference undefined

Do you know this problem ?

@kinnou02
Copy link
Contributor

kinnou02 commented Oct 10, 2017

yes sadly the log4cplus version of ubuntu isn't built with c++11 support
you can try to compile your version of log4cplus as stated here: #1781

or you can install an old version of log4cplus, we use the 1.0.4v5 from an old ubuntu, but I don't seems to find it.
you can try those from jessie hopefuly they won't have unsatisfied dependencies

@cvenet30980
Copy link
Author

I found the 1.0.4v5 and the compilation is now OK. Thks

after launch kraken and jormungandr (build_navitia.sh)
i have this message
No handlers could be found for logger "jormungandr.new_relic"
[2017-10-10 15:50:01,081] [None] [ INFO] [29582] [jormungandr.compat] monkey patching parse_args of RequestParser
/home/navitia/.local/lib/python2.7/site-packages/flask_cache/init.py:152: UserWarning: Flask-Cache: CACHE_TYPE is set to null, caching is effectively disabled.
warnings.warn("Flask-Cache: CACHE_TYPE is set to null, "
[2017-10-10 15:50:01,676] [None] [ INFO] [29582] [jormungandr.instance_manager] Initialisation, reading file: /home/navitia/navitia/run/jormungandr/default.json
[2017-10-10 15:50:01,678] [None] [DEBUG] [29582] [jormungandr.instance_manager] instance configuration: {u'socket': u'ipc:///tmp/default_kraken', u'key': u'default'}
Traceback (most recent call last):
File "/home/navitia/navitia/source/jormungandr/jormungandr/manage.py", line 34, in
from jormungandr import app
File "/home/navitia/navitia/source/jormungandr/jormungandr/init.py", line 90, in
i_manager.initialisation()
File "/home/navitia/navitia/source/jormungandr/jormungandr/instance_manager.py", line 121, in initialisation
self.register_instance(config_data)
File "/home/navitia/navitia/source/jormungandr/jormungandr/instance_manager.py", line 96, in register_instance
instance = Instance(self.context, name, config['zmq_socket'],
KeyError: u'zmq_socket'

@cvenet30980
Copy link
Author

I found that the script build_navitia create a default.json with the key "socket" but jormungandr wait for the key zmq_socket...

excuse me for that

@pbougue
Copy link
Contributor

pbougue commented Oct 10, 2017

Yep that script is not used and probably not up to date :-/ but don't hesitate to open a PR with your corrections when you manage to correct it, if you want to.

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

No branches or pull requests

3 participants