Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker构建的时候报错 #194

Closed
airclear opened this issue Oct 1, 2017 · 7 comments
Closed

docker构建的时候报错 #194

airclear opened this issue Oct 1, 2017 · 7 comments

Comments

@airclear
Copy link

airclear commented Oct 1, 2017

报:No package glog-devel available. 构建日志如下:

Sending build context to Docker daemon 89.61 MB
Step 1/9 : FROM centos:latest
 ---> 196e0ce0c9fb
Step 2/9 : MAINTAINER left2right <[email protected]>
 ---> Using cache
 ---> f601cd05bf93
Step 3/9 : RUN yum -y update &&     yum -y install snappy-devel &&     yum -y install protobuf-devel &&     yum -y install glog-devel &&     yum -y install gcc-c++ &&     yum -y install make &&     yum -y install git
 ---> Running in d0332c00d189
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: mirrors.btte.net
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
Resolving Dependencies
--> Running transaction check
---> Package nss.x86_64 0:3.28.4-11.el7_4 will be updated
---> Package nss.x86_64 0:3.28.4-12.el7_4 will be an update
---> Package nss-sysinit.x86_64 0:3.28.4-11.el7_4 will be updated
---> Package nss-sysinit.x86_64 0:3.28.4-12.el7_4 will be an update
---> Package nss-tools.x86_64 0:3.28.4-11.el7_4 will be updated
---> Package nss-tools.x86_64 0:3.28.4-12.el7_4 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch          Version                  Repository      Size
================================================================================
Updating:
 nss                x86_64        3.28.4-12.el7_4          updates        848 k
 nss-sysinit        x86_64        3.28.4-12.el7_4          updates         60 k
 nss-tools          x86_64        3.28.4-12.el7_4          updates        500 k

Transaction Summary
================================================================================
Upgrade  3 Packages

Total download size: 1.4 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/updates/packages/nss-sysinit-3.28.4-12.el7_4.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for nss-sysinit-3.28.4-12.el7_4.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total                                              350 kB/s | 1.4 MB  00:04     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-4.1708.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : nss-3.28.4-12.el7_4.x86_64                                   1/6 
  Updating   : nss-sysinit-3.28.4-12.el7_4.x86_64                           2/6 
  Updating   : nss-tools-3.28.4-12.el7_4.x86_64                             3/6 
  Cleanup    : nss-tools-3.28.4-11.el7_4.x86_64                             4/6 
  Cleanup    : nss-3.28.4-11.el7_4.x86_64                                   5/6 
  Cleanup    : nss-sysinit-3.28.4-11.el7_4.x86_64                           6/6 
  Verifying  : nss-sysinit-3.28.4-12.el7_4.x86_64                           1/6 
  Verifying  : nss-tools-3.28.4-12.el7_4.x86_64                             2/6 
  Verifying  : nss-3.28.4-12.el7_4.x86_64                                   3/6 
  Verifying  : nss-tools-3.28.4-11.el7_4.x86_64                             4/6 
  Verifying  : nss-3.28.4-11.el7_4.x86_64                                   5/6 
  Verifying  : nss-sysinit-3.28.4-11.el7_4.x86_64                           6/6 

Updated:
  nss.x86_64 0:3.28.4-12.el7_4          nss-sysinit.x86_64 0:3.28.4-12.el7_4   
  nss-tools.x86_64 0:3.28.4-12.el7_4   

Complete!
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
Resolving Dependencies
--> Running transaction check
---> Package snappy-devel.x86_64 0:1.1.0-3.el7 will be installed
--> Processing Dependency: snappy(x86-64) = 1.1.0-3.el7 for package: snappy-devel-1.1.0-3.el7.x86_64
--> Processing Dependency: libsnappy.so.1()(64bit) for package: snappy-devel-1.1.0-3.el7.x86_64
--> Running transaction check
---> Package snappy.x86_64 0:1.1.0-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch            Version              Repository     Size
================================================================================
Installing:
 snappy-devel          x86_64          1.1.0-3.el7          base           14 k
Installing for dependencies:
 snappy                x86_64          1.1.0-3.el7          base           40 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 54 k
Installed size: 146 k
Downloading packages:
--------------------------------------------------------------------------------
Total                                              208 kB/s |  54 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : snappy-1.1.0-3.el7.x86_64                                    1/2 
  Installing : snappy-devel-1.1.0-3.el7.x86_64                              2/2 
  Verifying  : snappy-devel-1.1.0-3.el7.x86_64                              1/2 
  Verifying  : snappy-1.1.0-3.el7.x86_64                                    2/2 

Installed:
  snappy-devel.x86_64 0:1.1.0-3.el7                                             

Dependency Installed:
  snappy.x86_64 0:1.1.0-3.el7                                                   

Complete!
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
Resolving Dependencies
--> Running transaction check
---> Package protobuf-devel.x86_64 0:2.5.0-8.el7 will be installed
--> Processing Dependency: protobuf-compiler = 2.5.0-8.el7 for package: protobuf-devel-2.5.0-8.el7.x86_64
--> Processing Dependency: protobuf = 2.5.0-8.el7 for package: protobuf-devel-2.5.0-8.el7.x86_64
--> Processing Dependency: zlib-devel for package: protobuf-devel-2.5.0-8.el7.x86_64
--> Processing Dependency: libprotoc.so.8()(64bit) for package: protobuf-devel-2.5.0-8.el7.x86_64
--> Processing Dependency: libprotobuf.so.8()(64bit) for package: protobuf-devel-2.5.0-8.el7.x86_64
--> Running transaction check
---> Package protobuf.x86_64 0:2.5.0-8.el7 will be installed
---> Package protobuf-compiler.x86_64 0:2.5.0-8.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-17.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch          Version               Repository   Size
================================================================================
Installing:
 protobuf-devel           x86_64        2.5.0-8.el7           base        163 k
Installing for dependencies:
 protobuf                 x86_64        2.5.0-8.el7           base        338 k
 protobuf-compiler        x86_64        2.5.0-8.el7           base        261 k
 zlib-devel               x86_64        1.2.7-17.el7          base         50 k

Transaction Summary
================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 812 k
Installed size: 3.0 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              964 kB/s | 812 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : protobuf-2.5.0-8.el7.x86_64                                  1/4 
  Installing : protobuf-compiler-2.5.0-8.el7.x86_64                         2/4 
  Installing : zlib-devel-1.2.7-17.el7.x86_64                               3/4 
  Installing : protobuf-devel-2.5.0-8.el7.x86_64                            4/4 
  Verifying  : protobuf-devel-2.5.0-8.el7.x86_64                            1/4 
  Verifying  : protobuf-compiler-2.5.0-8.el7.x86_64                         2/4 
  Verifying  : protobuf-2.5.0-8.el7.x86_64                                  3/4 
  Verifying  : zlib-devel-1.2.7-17.el7.x86_64                               4/4 

Installed:
  protobuf-devel.x86_64 0:2.5.0-8.el7                                           

Dependency Installed:
  protobuf.x86_64 0:2.5.0-8.el7       protobuf-compiler.x86_64 0:2.5.0-8.el7   
  zlib-devel.x86_64 0:1.2.7-17.el7   

Complete!
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
No package glog-devel available.
Error: Nothing to do
The command '/bin/sh -c yum -y update &&     yum -y install snappy-devel &&     yum -y install protobuf-devel &&     yum -y install glog-devel &&     yum -y install gcc-c++ &&     yum -y install make &&     yum -y install git' returned a non-zero code: 1
@airclear
Copy link
Author

airclear commented Oct 2, 2017

吐槽一下,编译体验真是糟透了。。。
使用docker报错,各种通不过:装了EPEL,能装上glog了,然后之后还报没有 which命令错误~~
根据教程使用centos编译一样报错

  GEN      build_version.cc
  CC       pika_command.o
In file included from ./include/pika_client_conn.h:9:0,
                 from ./include/pika_admin.h:9,
                 from /data/apps/pika/src/pika_command.cc:6:
/usr/include/glog/logging.h:85:27: fatal error: gflags/gflags.h: No such file or directory
 #include <gflags/gflags.h>
                           ^
compilation terminated.
make: *** [/data/apps/pika/src/pika_command.o] Error 1

@Leviathan1995
Copy link
Contributor

@airclear 缺少gflags

@airclear
Copy link
Author

airclear commented Oct 3, 2017

@Leviathan1995

Package gflags-2.1.1-6.el7.x86_64 already installed and latest version

大神,官方能搞个docker镜像吗?这样能极大降低使用门槛啊,有利于传播。。。

@Leviathan1995
Copy link
Contributor

Leviathan1995 commented Oct 3, 2017 via email

@baotiao
Copy link
Contributor

baotiao commented Oct 25, 2017

目前Pika 可以直接使用 二进制包, 解压就可以. 比docker 还方便 @airclear 你可以试试

@baotiao baotiao closed this as completed Oct 31, 2017
gaodq pushed a commit that referenced this issue Nov 2, 2017
@Jalright
Copy link

gflags-devel glog-devel是要安装开发包吧!

@gaodq
Copy link

gaodq commented Nov 10, 2017

@greking 如果直接用二进制就不用安装开发包了,Dokerfile我修改了下,可以自己构建镜像了。

wangshao1 added a commit to wangshao1/pika that referenced this issue Jul 22, 2023
AlexStocks pushed a commit that referenced this issue Jul 26, 2023
…ess (#1805)

* define rsync related header file and proto

* feat:add throttle (#167)

* add_throttle

* feat: implement rsync network tansform (#169)

implement rsync network transfer

Co-authored-by: wangshaoyi <[email protected]>

* fix action (#171)

* fix action

* fix

* feat: add load local meta file (#175)

* add load meta file

* [feat] add rsync client/server code (#177)

* implement rsync network transfer

* add rsyncclient to syncslaveslot (#182)

add rsyncclient to syncslaveslot

* feat: add read meta file and data (#179)

* add read meta file and data

* fix compile error (#183)

* fix bug

* add rsyncclient to syncslaveslot

* fix compile error

* fix compile error

---------

Co-authored-by: wangshaoyi <[email protected]>

* fix compile error (#184)

* fix bug

* optimize: add_throttle (#189)

optimize throttle

* rsyncclient periodically flush meta table (#192)

rsyncclient periodically flush meta table

* change rsync response (#190)

* change rsync response

* add debug log for test

* fix rsync client/server bugs

* fix bugs

* add debug log for test

* fix bugs

* fix bugs

* fix bugs

* rix rsync bugs (#194)

* fix pika rsync bug

* fix bugs

* fix bugs

* fix bugs 1

* fix bugs

* fix rsync bugs (#195)

* add debug log for test

* fix rsync client/server bugs

* fix bugs

* add debug log for test

* fix bugs

* fix bugs

* fix bugs

* fix bugs

* fix bugs

* fix bugs 1

* fix bugs

---------

Co-authored-by: wangshaoyi <[email protected]>

* remove unused code

* remove unused code

* remove unused code

* remove unused code

* add copyright

* fix by review comments (#213)

Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (#214)

* fix by review comments
Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (#216)

* fix by review comments
---------

Co-authored-by: wangshaoyi <[email protected]>

* Optimize rsync wangsy (#217)

* fix by review comments

Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (#218)

* fix by review comments
---------

Co-authored-by: wangshaoyi <[email protected]>

---------

Co-authored-by: wangshaoyi <[email protected]>
Co-authored-by: Yuecai Liu <[email protected]>
Co-authored-by: chejinge <[email protected]>
Co-authored-by: luky116 <[email protected]>
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this issue Jun 8, 2024
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this issue Jun 8, 2024
…ess (OpenAtomFoundation#1805)

* define rsync related header file and proto

* feat:add throttle (OpenAtomFoundation#167)

* add_throttle

* feat: implement rsync network tansform (OpenAtomFoundation#169)

implement rsync network transfer

Co-authored-by: wangshaoyi <[email protected]>

* fix action (OpenAtomFoundation#171)

* fix action

* fix

* feat: add load local meta file (OpenAtomFoundation#175)

* add load meta file

* [feat] add rsync client/server code (OpenAtomFoundation#177)

* implement rsync network transfer

* add rsyncclient to syncslaveslot (OpenAtomFoundation#182)

add rsyncclient to syncslaveslot

* feat: add read meta file and data (OpenAtomFoundation#179)

* add read meta file and data

* fix compile error (OpenAtomFoundation#183)

* fix bug

* add rsyncclient to syncslaveslot

* fix compile error

* fix compile error

---------

Co-authored-by: wangshaoyi <[email protected]>

* fix compile error (OpenAtomFoundation#184)

* fix bug

* optimize: add_throttle (OpenAtomFoundation#189)

optimize throttle

* rsyncclient periodically flush meta table (OpenAtomFoundation#192)

rsyncclient periodically flush meta table

* change rsync response (OpenAtomFoundation#190)

* change rsync response

* add debug log for test

* fix rsync client/server bugs

* fix bugs

* add debug log for test

* fix bugs

* fix bugs

* fix bugs

* rix rsync bugs (OpenAtomFoundation#194)

* fix pika rsync bug

* fix bugs

* fix bugs

* fix bugs 1

* fix bugs

* fix rsync bugs (OpenAtomFoundation#195)

* add debug log for test

* fix rsync client/server bugs

* fix bugs

* add debug log for test

* fix bugs

* fix bugs

* fix bugs

* fix bugs

* fix bugs

* fix bugs 1

* fix bugs

---------

Co-authored-by: wangshaoyi <[email protected]>

* remove unused code

* remove unused code

* remove unused code

* remove unused code

* add copyright

* fix by review comments (OpenAtomFoundation#213)

Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (OpenAtomFoundation#214)

* fix by review comments
Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (OpenAtomFoundation#216)

* fix by review comments
---------

Co-authored-by: wangshaoyi <[email protected]>

* Optimize rsync wangsy (OpenAtomFoundation#217)

* fix by review comments

Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (OpenAtomFoundation#218)

* fix by review comments
---------

Co-authored-by: wangshaoyi <[email protected]>

---------

Co-authored-by: wangshaoyi <[email protected]>
Co-authored-by: Yuecai Liu <[email protected]>
Co-authored-by: chejinge <[email protected]>
Co-authored-by: luky116 <[email protected]>
cheniujh pushed a commit to cheniujh/pika that referenced this issue Sep 24, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this issue Sep 24, 2024
…ess (OpenAtomFoundation#1805)

* define rsync related header file and proto

* feat:add throttle (OpenAtomFoundation#167)

* add_throttle

* feat: implement rsync network tansform (OpenAtomFoundation#169)

implement rsync network transfer

Co-authored-by: wangshaoyi <[email protected]>

* fix action (OpenAtomFoundation#171)

* fix action

* fix

* feat: add load local meta file (OpenAtomFoundation#175)

* add load meta file

* [feat] add rsync client/server code (OpenAtomFoundation#177)

* implement rsync network transfer

* add rsyncclient to syncslaveslot (OpenAtomFoundation#182)

add rsyncclient to syncslaveslot

* feat: add read meta file and data (OpenAtomFoundation#179)

* add read meta file and data

* fix compile error (OpenAtomFoundation#183)

* fix bug

* add rsyncclient to syncslaveslot

* fix compile error

* fix compile error

---------

Co-authored-by: wangshaoyi <[email protected]>

* fix compile error (OpenAtomFoundation#184)

* fix bug

* optimize: add_throttle (OpenAtomFoundation#189)

optimize throttle

* rsyncclient periodically flush meta table (OpenAtomFoundation#192)

rsyncclient periodically flush meta table

* change rsync response (OpenAtomFoundation#190)

* change rsync response

* add debug log for test

* fix rsync client/server bugs

* fix bugs

* add debug log for test

* fix bugs

* fix bugs

* fix bugs

* rix rsync bugs (OpenAtomFoundation#194)

* fix pika rsync bug

* fix bugs

* fix bugs

* fix bugs 1

* fix bugs

* fix rsync bugs (OpenAtomFoundation#195)

* add debug log for test

* fix rsync client/server bugs

* fix bugs

* add debug log for test

* fix bugs

* fix bugs

* fix bugs

* fix bugs

* fix bugs

* fix bugs 1

* fix bugs

---------

Co-authored-by: wangshaoyi <[email protected]>

* remove unused code

* remove unused code

* remove unused code

* remove unused code

* add copyright

* fix by review comments (OpenAtomFoundation#213)

Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (OpenAtomFoundation#214)

* fix by review comments
Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (OpenAtomFoundation#216)

* fix by review comments
---------

Co-authored-by: wangshaoyi <[email protected]>

* Optimize rsync wangsy (OpenAtomFoundation#217)

* fix by review comments

Co-authored-by: wangshaoyi <[email protected]>

* fix by review comments (OpenAtomFoundation#218)

* fix by review comments
---------

Co-authored-by: wangshaoyi <[email protected]>

---------

Co-authored-by: wangshaoyi <[email protected]>
Co-authored-by: Yuecai Liu <[email protected]>
Co-authored-by: chejinge <[email protected]>
Co-authored-by: luky116 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants