I'm on Centos 7 and gave this a shot but 2.27 was too new for me. I needed to also upgrade make (>3.79) and gcc (>4.9), which I didn't want to do. I opted to try this with the minimum glibc instead (2.19). The building and patching went smooth. Unfortunately, it failed to start. This is the error I got:tacvbo wrote: ↑2018/10/16 04:39:58There is another way, it might be not as easy and clean as the docker option but it's better to have some options around. This worked on a Centos 6.
I compiled glibc-2.27 at /opt/glibc-2.27/
and then as user:Code: Select all
# tar xzvf glibc-2.27.tar.gz # cd glibc-2.27 # mkdir build # cd build # ../configure --prefix=/opt/glibc-2.27 # make && make install
you might need to yum install patchelf.Code: Select all
% patchelf --set-interpreter /opt/glibc-2.27/lib/ld-2.27.so ~/.dropbox-dist/dropbox-lnx.x86_64-59.4.93/dropbox % patchelf --set-rpath /opt/glibc-2.27/lib ~/.dropbox-dist/dropbox-lnx.x86_64-59.4.93/dropbox
Code: Select all
dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides
dropbox: running main script
dropbox: load fq extension '/home/falk/.dropbox-dist/dropbox-lnx.x86_64-59.4.93/cryptography.hazmat.bindings._constant_time.cpython-35m-x86_64-linux-gnu.so'
Traceback (most recent call last):
File "dropbox/__init__.pyc", line 8, in <module>
File "dropbox/overrides.pyc", line 517, in <module>
File "dropbox/overrides.pyc", line 418, in __ssl_wrap_socket_internal_ca_certs
File "dropbox/ssl/revoked_certs.pyc", line 9, in <module>
File "cryptography/x509/__init__.pyc", line 9, in <module>
File "cryptography/x509/base.pyc", line 16, in <module>
File "cryptography/x509/extensions.pyc", line 18, in <module>
File "cryptography/hazmat/primitives/constant_time.pyc", line 9, in <module>
File "<_bootstrap_overrides>", line 153, in load_module
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
!! dropbox: fatal python exception:
['Traceback (most recent call last):\n', ' File "dropbox/__init__.pyc", line 8, in <module>\n', ' File "dropbox/overrides.pyc", line 517, in <module>\n', ' File "dropbox/overrides.pyc", line 418, in __ssl_wrap_socket_internal_ca_certs\n', ' File "dropbox/ssl/revoked_certs.pyc", line 9, in <module>\n', ' File "cryptography/x509/__init__.pyc", line 9, in <module>\n', ' File "cryptography/x509/base.pyc", line 16, in <module>\n', ' File "cryptography/x509/extensions.pyc", line 18, in <module>\n', ' File "cryptography/hazmat/primitives/constant_time.pyc", line 9, in <module>\n', ' File "<_bootstrap_overrides>", line 153, in load_module\n', 'ImportError: libffi.so.6: cannot open shared object file: No such file or directory\n'] (error 3)
Aborted (core dumped)