use DESTDIR just like Sandor explained. The other problem is a more fundamental issue to solve out-of-the-box, so if you don't have json, just remove the cim directory from your installation and you'll be fine. -- Bazsi On Fri, Jul 31, 2015 at 3:21 PM, Jacek Drewniak <jacek.drewniak@oort.in> wrote:
Hello,
I am trying to cross compile syslog-ng with yocto distro. I have problem with --prefix. I would like to install syslog-ng to some custom folder and than copy all files into my board. But prefix hadrcode files path into syslog-ng.
It is very hard to copy compilled files from build directory (without --prefix and make install, to not install into my desktop).
It is possible to --prefix installation without hardcode paths to files?
In the other hand I configure syslog-ng without json but config still needs it. I have to delete *cim* to go further.
*Error parsing config, Error compiling template (Unknown template function "format-json") in /usr/local/share/include/scl/cim/template.conf at line 23, column 32:* * included from /usr/local/etc/scl.conf line 32, column 1* * included from /usr/local/etc/syslog-ng.conf line 8, column 1*
*template-function "format-cim" "$(format-json --pair @timestamp='${R_ISODATE}' --pair @message='${MSG}' --key .cim.* --shift 5 --key _* --key .* --replace-prefix .=_ --key *.*)\n";* * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
-- *Jacek Drewniak* R&D
*email*: jacek.drewniak@oort.in
*mobile*: *+**48 696 151 670*
*website*: www.oort.in
AWARDS
Bluetooth Breakthrough Award Finalist CES 2015 Envisioneering Innovation & Design Award Winner Tech Trailblazers Awards Winner Most exciting company at Bluetooth Media Event in New York 2014 Polish Agency for Enterprise Development Award Winner
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq