You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN apk --no-cache add rocksdb-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
Installing rocksdb-ruby fails with:
...
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/rocksdb-ruby-1.0.2/ext/rocksdb
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/3.0.0 -r
./siteconf20220323-1-bs9mqy.rb extconf.rb
checking for -lrocksdb_debug... no
checking for rocksdb/db.h... yes
checking for -lrocksdb... yes
creating Makefile
current directory: /usr/local/bundle/gems/rocksdb-ruby-1.0.2/ext/rocksdb
make DESTDIR\= clean
current directory: /usr/local/bundle/gems/rocksdb-ruby-1.0.2/ext/rocksdb
make DESTDIR\=
compiling rocksdb_batch_rb.cc
In file included from /usr/include/rocksdb/iterator.h:23,
from /usr/include/rocksdb/db.h:18,
from rocksdb_batch_rb.h:1,
from rocksdb_batch_rb.cc:1:
/usr/include/rocksdb/slice.h:46:20: error: 'string_view' in namespace 'std' does
not name a type
46 | Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
| ^~~~~~~~~~~
/usr/include/rocksdb/slice.h:46:15: note: 'std::string_view' is only available
from C++17 onwards
46 | Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
| ^~~
/usr/include/rocksdb/slice.h:95:8: error: 'string_view' in namespace 'std' does
not name a type
95 | std::string_view ToStringView() const {
| ^~~~~~~~~~~
/usr/include/rocksdb/slice.h:95:3: note: 'std::string_view' is only available
from C++17 onwards
95 | std::string_view ToStringView() const {
| ^~~
/usr/include/rocksdb/slice.h: In constructor 'rocksdb::Slice::Slice(const
int&)':
/usr/include/rocksdb/slice.h:46:48: error: request for member 'data' in 'sv',
which is of non-class type 'const int'
46 | Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
| ^~~~
/usr/include/rocksdb/slice.h:46:66: error: request for member 'size' in 'sv',
which is of non-class type 'const int'
46 | Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
| ^~~~
make: *** [Makefile:213: rocksdb_batch_rb.o] Error 1
make failed, exit code 2
The text was updated successfully, but these errors were encountered:
I'm installing rocksdb-dev from alpine testing/edge. They recently updated it to 7.0.2 https://pkgs.alpinelinux.org/packages?name=rocksdb-dev&branch=edge ... but rocksdb-ruby doesn't compile with that:
From our Dockerfile:
Installing rocksdb-ruby fails with:
The text was updated successfully, but these errors were encountered: