[oe] mongodb_git.bb (thud-mongodb4.0) > EXTRA_OESCONS mongod mongos

Knoppix theknoppix at gmail.com
Thu Feb 14 13:09:59 UTC 2019

(Excuse me for my english I am not native)

I am trying to install mongodb. Everything is okey if I just add the recipe
to my image. But I need "mongo - the database shell" and all mongo's
configuration files (i.e: systemd service, /etc conf files) (does the
installation copy conf files automatically or should I copy it manually?)

After installed successfully with default settings, on the yocto image
there isn't mongo binary but just mongod mongos.

I am not sure these are possible or not.
When I add "mongo" (mongo shell) keyword to mongodb_git.bb EXTRA_OESCONS
section, bitbake gives me error. And I cannot figure out what's the problem?

Does mongodb_git.bb recipe support mongo shell and conf files?

Could you pleae advice me anything? There is no enough documentation for
understand why mongodb_git.bb recipe's OESCONS doesn't contain mongo.
EXTRA_OESCONS = "--prefix=${D}${prefix} \
                 LIBPATH=${STAGING_LIBDIR} \
                 LINKFLAGS='${LDFLAGS}' \
                 CXXFLAGS='${CXXFLAGS}' \
                 TARGET_ARCH=${TARGET_ARCH} \
                 --ssl \
                 --disable-warnings-as-errors \
                 --use-system-pcre \
                 --use-system-zlib \
                 --js-engine=none \
                 --nostrip \
'le', 'little', 'big', d)} \
                 --wiredtiger=${@['off','on'][d.getVar('SITEINFO_BITS') !=
'32']} \
                 ${PACKAGECONFIG_CONFARGS} \
                 mongod mongo mongos"
| scons: *** Do not know how to make File target `mongo'
| Skipping ranlib for thin archive
| Skipping ranlib for thin archive
| scons: building terminated because of errors.
| mongo failed: Do not know how to make File target `mongo'
| ERROR: scons build execution failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
failed with exit code '1'
NOTE: Tasks Summary: Attempted 3460 tasks of which 2625 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

More information about the Openembedded-devel mailing list