4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7でDropBox glibc2.9以上でないと使えなくなった対応

Last updated at Posted at 2018-10-17

2018年10月15日にDropBoxが、 glibc2.9以上でないと使えなくなった。
dropbox.png

現在、CentOS7のglibcは、yumで更新できるものは2.7まででしたので、DropBoxでは、glibc2.27を使うように対応しました。

参考にしたサイト
https://paste.ee/p/NjACE

sudo su
wget https://ftp.gnu.org/gnu/bison/bison-3.1.tar.gz
tar zxf bison-3.1.tar.gz
cd bison-3.1
./configure --prefix=/opt/bison-3.1
./configure
yum -y install gcc gcc-c++ gcc-gnat libgnat libgnat-devel m4 automake autoconf gettext gperf autogen flex texinfo python-sphinx diffutils patch
./configure --prefix=/opt/bison-3.1
make
make install
mkdir -p /opt/glibc-2.27/etc/ld.so.conf.d
cp /etc/ld.so.conf /opt/glibc-2.27/etc/
ls /etc/ld.so.conf.d/kernel-ml-4.18.14-1.el7.elrepo.x86_64.conf
cp /etc/ld.so.conf.d/kernel-ml-4.18.14-1.el7.elrepo.x86_64.conf /opt/glibc-2.27/etc/ld.so.conf.d
cd ..
wget https://ftp.gnu.org/gnu/glibc/glibc-2.27.tar.gz
tar xzvf glibc-2.27.tar.gz
cd glibc-2.27
mkdir build
cd build
PATH=$PATH:/opt/bison-3.1/bin ../configure --prefix=/opt/glibc-2.27 --with-headers=/opt/kernel-ml-headers/usr/include
PATH=$PATH:/opt/bison-3.1/bin ../configure --prefix=/opt/glibc-2.27 --with-headers=/opt/kernel-ml-headers/usr/includePATH=$PATH:/opt/bison-3.1/bin make
PATH=$PATH:/opt/bison-3.1/bin make
PATH=$PATH:/opt/bison-3.1/bin make install
exit
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum-config-manager --enable elrepo-kernel
yum install kernel-ml.x86_64
yumdownloader kernel-ml-headers.x86_64
rpm -ihv -r /opt/kernel-ml-headers kernel-ml-headers-4.18.14-1.el7.elrepo.x86_64.rpm
yumdownloader libselinux-devel
rpm -ihv -r /opt/kernel-ml-headers libselinux-devel-2.5-12.el7.x86_64.rpmrpm -ihv -r /opt/kernel-ml-headers libselinux-devel-2.5-12.el7.x86_64.rpm --nodeps
rpm -ihv -r /opt/kernel-ml-headers libselinux-devel-2.5-12.el7.x86_64.rpm --nodeps
yum install centos-release-scl patchelf
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install devtoolset-7
scl enable devtoolset-7 bash
exit

wget -O - https://www.dropbox.com/download?plat=lnx.x86_64 | tar xzf -
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
ln -s /lib64/libgcc_s.so.1 .dropbox-dist/dropbox-lnx.x86_64-59.4.93/
ln -s /usr/lib64/libstdc++.so.6 .dropbox-dist/dropbox-lnx.x86_64-59.4.93/
ln -s /lib64/libz.so.1 .dropbox-dist/dropbox-lnx.x86_64-59.4.93/
ln -s /lib64/libgthread-2.0.so.0 .dropbox-dist/dropbox-lnx.x86_64-59.4.93/
ln -s /lib64/libglib-2.0.so.0 .dropbox-dist/dropbox-lnx.x86_64-59.4.93/
wget https://www.dropboxwiki.com/tips-and-tricks/using-the-official-dropbox-command-line-interface-cli
vi using-the-official-dropbox-command-line-interface-cli
LD_LIBRARY_PATH=~/.dropbox-dist/dropbox-lnx.x86_64-59.4.93 dropbox.py start
wget -O ~/bin/dropbox.py https://www.dropbox.com/download?dl=packages/dropbox.py
chmod +x ~/bin/dropbox.py
~/bin/dropbox.py help
~/bin/dropbox.py status
yum install pcre-devel
sudo yum install pcre-devel
ln -s /lib64/libpcre.so.1 .dropbox-dist/dropbox-lnx.x86_64-59.4.93/
~/.dropbox-dist/dropbox-lnx.x86_64-59.4.93 dropbox.py start
dropbox.py start
`

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?