line 909
print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )
^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in build(). Aborting...
Git Clone URL: | https://aur.archlinux.org/mongodb.git (read-only, click to copy) |
---|---|
Package Base: | mongodb |
Description: | A high-performance, open source, schema-free document-oriented database |
Upstream URL: | https://www.mongodb.com/ |
Keywords: | database document-oriented nosql |
Licenses: | SSPL-1.0 |
Provides: | mongodb |
Submitter: | felixonmars |
Maintainer: | siavoshkc |
Last Packager: | siavoshkc |
Votes: | 36 |
Popularity: | 0.029726 |
First Submitted: | 2019-01-18 22:08 (UTC) |
Last Updated: | 2025-06-10 06:47 (UTC) |
« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 Next › Last »
line 909
print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )
^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in build(). Aborting...
I cannot build a package. Those are logs: ==> Making package: mongodb 4.0.11-1 (Thu 08 Aug 2019 13:06:49 CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Starting build()... scons: Reading SConscript files ... File "/home/rob/.cache/yay/mongodb/src/mongodb-src-r4.0.11/SConstruct", line 909
print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )
^
SyntaxError: invalid syntax
Fails to build:
scons: Reading SConscript files ...
File "/build/mongodb/src/mongodb-src-r4.0.11/SConstruct", line 909
print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )
^
SyntaxError: invalid syntax
RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
Failed :(
Please keep all comments on this package about mongodb
only, not the mongodb-bin
variant or upstream tarballs. Questions specifically about those need to go elsewhere, like on the mongodb-bin
package.
I'm having a bit of a hard time following the last 3 comments, in part because I can't see the original non-edited question. But, I think other than build diskspace usage, that all other discussion was really regarding upstream's tarballs and the mongodb-bin
package. In case I'm wrong, please let me know. This mongodb
package should build and install /usr/share/man/man1/mongo{d,s}.1.gz
. If it doesn't, please say how you're building it. I'm using devtools
.
Regarding why this needs 180GB of diskspace, that's only to build it, not install it. As for why, you'd want to ask upstream. There's been a thread discussing this here: https://groups.google.com/forum/#!searchin/mongodb-user/space%7Csort:date/mongodb-user/cHMbYPyD6f0/2dhGXqxsBwAJ
The majority of the time and space usage is in check()
. They appear to be using an awful lot of data during their tests. If you don't run these tests, on my 32 Xeon cores, it finishes in 15 minutes instead of 60, and uses 10GB of diskspace instead of 165GB. I can't advocate skipping the tests, but I will note that if you install mongodb-bin
, you're only getting testing on upstream's machine with its dependencies, not yours. So, maybe skipping the tests here is the same thing, since I always run them before pushing an updated version. But, I still recommend running them, as it's a database and integrity is paramount.
[Original Message Timestamp: 2019-03-28 07:39] I failed to build this thing because of the disk space requirement. Before I take another stab at trying to build, does this AUR package or https://aur.archlinux.org/packages/mongodb-bin/ come with (i.e. installs) the manpages? I had no issues with installing the community server (mongodb-linux-x86_64-4.0.7.tgz) but this tarball does not ship with manpages.
Can someone briefly explain why this thing needs 180GB of diskspace?
Note: the [X] "Delete comment" deletes w/o asking for confirmation. The webmaster needs to fix this feature.
@navarroaxel Thank you for the quick response. This is actually my first-ever AUR package-building attempt, and it was a rough one. Can we ask the maintainers of this AUR to use a non-'all' build? (unless there is a real reason for 'all')
I think I will just go with the mongodb-bin option for now.
Hi @fkl, Sounds like this package is using the 'all' build variant. That will build everything in the source tree.
The mongodb-bin package comes with man pages, you can use the command man mongo
or man mongod
.
You should not use the Linux legacy tgz package from mongodb website because of this: https://www.mongodb.com/blog/post/a-proposal-to-endoflife-our-generic-linux-tar-packages
I wouldn't use 4.0.7-1. It doesn't require wiredtiger commit db5942dc, as upstream expects. See https://github.com/mongodb/mongo/commit/0a201aa5bff44f490b970727587b60066c3ce1a7
As separate packages, mongodb and wiredtiger almost always need to be upgraded at the same time.
I'm wondering if it makes continued sense for mongodb to have wiredtiger as a separate dependency. By default, it pulls in its dependencies' source by the specified commit in its mongodb git repo. Haivng it use the system wiredtiger is from when they were in community.
Some if its dependencies can be specified to use the system-installed packages, but can't, because they either require older versions than Arch has, or have their own in-repo patches they didn't submit upstream. Like, asio, icu, boost, and strangely even mongo-c.
Since if you're going to use mongodb, you have to have wiredtiger by one of these methods, and wiredtiger isn't used for anything other than mongodb, having them separate seems like it's just adding extra steps for users to build. (mongodb-3.4 does of course depend on wiredtiger, but that conflicts with this package, and I'm not sure it's safe for it to be given the commit that current stable mongodb requires anyway.)
EDIT: I'm now leaning toward keeping wiredtiger separate. Statically building it in-tree doesn't provide the files wiredtiger does, and users could be using its headers and libraries. Additionally, we'd have to look into the other wiredtiger configure options (leveldb, lz4, tcmalloc, builtin zlib) can/should be added when building within mongo. Probably not worth investing time in, easier for the 3 involved maintainers to just become maintainers of both packages.
Pinned Comments
JstKddng commented on 2022-08-03 23:28 (UTC)
Binary builds are available:
https://software.opensuse.org//download.html?project=home%3Ajustkidding%3Aarch&package=mongodb
JstKddng commented on 2022-08-03 23:28 (UTC)
If you have a pre-sandybridge CPU or an ARMv8 sbc, you can use mongodb44
If you'd like to stay in the V5.0 branch, you can use mongodb50