今天需要在centos上安装baidupcs,遇到了如下问题

如我另外一片文章https://blog.csdn.net/wq3028/article/details/79085862

首先执行获取源码,执行

git clone https://github.com/GangZhuo/BaiduPCS.git

编译源代码

cd BaiduPCS
./configure

进行配置 会报错 这里安装curl之后就能解决了
baidupcs主要依赖curl,在ubuntu上安装这个libcurl4-openssl-dev包就可以了
在centos中执行yum search libcurl 搜索到
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* epel: ftp.cuhk.edu.hk
======================================================= N/S matched: libcurl =======================================================
libcurl-devel.i686 : Files needed for building applications with libcurl
libcurl-devel.x86_64 : Files needed for building applications with libcurl
curlftpfs.x86_64 : CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl
libcurl.i686 : A library for getting files from web servers
libcurl.x86_64 : A library for getting files from web servers
mingw32-curl.noarch : MinGW Windows port of curl and libcurl
mingw64-curl.noarch : MinGW Windows port of curl and libcurl
perl-WWW-Curl.x86_64 : Perl extension interface for libcurl
python-pycurl.x86_64 : A Python interface to libcurl
python34-pycurl.x86_64 : Python interface to libcurl for Python 3
rubygem-curb.x86_64 : Ruby libcurl bindings
uget.x86_64 : Download manager using GTK+ and libcurl

Name and summary matches only, use “search all” for everything.

这里我们使用的x86的系统所以安装libcurl.x86_64和libcurl-devel.x86_64

yum install libcurl.x86_64 libcurl-devel.x86_64
./configure
make

然后执行make 发现报错如下
[root@localhost BaiduPCS]# make
CDPATH=”${ZSH_VERSION+.}:” && cd . && /bin/sh /root/temp/BaiduPCS/build-aux/missing aclocal-1.15 -I m4
/root/temp/BaiduPCS/build-aux/missing: line 81: aclocal-1.15: command not found
WARNING: ‘aclocal-1.15’ is missing on your system.
You should only need it if you modified ‘acinclude.m4’ or
‘configure.ac’ or m4 files included by ‘configure.ac’.
The ‘aclocal’ program is part of the GNU Automake package:
http://www.gnu.org/software/automake
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
http://www.gnu.org/software/autoconf
http://www.gnu.org/software/m4/
http://www.perl.org/
make: * [aclocal.m4] Error 127

经过查找发现缺少automake这个包,手动安装既可

wget ftp://mirrors.ustc.edu.cn/gnu/automake/automake-1.15.tar.xz
tar xf automake-1.15.tar.xz
cd automake-1.15/
./configure && make && make install

安装后再次进入baidupcs路径

cd BaiduPCS/
make
make install 安装成功之后正常使用

[root@localhost BaiduPCS]# baidupcs
pcs v0.3.1 (API v1.1.5)baidupcs

Usage: baidupcs command [options] [arg1|arg2…]

Description:
The baidupcs is client of baidu net disk. It supplied many functions,
which can manage baidu net disk on terminal, such as ls, cp, rm,
mv, rename, download, upload, search and so on.
The baidupcs provided AES encryption, which can protected your data.
The baidupcs is open source, and published on MIT.
Please see https://github.com/GangZhuo/baidupcs.

Options:
–context= Specify context.

Commands:
cat Print the file content
cd Change the work directory
copy Copy the file|directory
compare Print the differents between local and net disk
context Print the context
download Download the file
echo Write the text into net disk file
encode Encrypt/decrypt the file
fix Fix file base md5 and scrap
help Print the usage
list List the directory
login Login
logout Logout
meta Print the file|directory meta information
mkdir Make a new directory
move Move the file|directory into other file|directory
pwd Print the current work directory
quota Print the quota
remove Remove the file|directory
rename Rename the file|directory
set Change the context, you can print the context by ‘context’ command
search Search the files in the specify directory
synch Synch between local and net disk. You can ‘compare’ first.
upload Upload the file
version Print the version
who Print the current user
Use ‘baidupcs -h’ to print command usage.
Sample:
baidupcs help
baidupcs help cat
baidupcs cat -h
baidupcs cat /note.txt
baidupcs cd /temp
baidupcs cat /note.txt –context=/home/gang/.pcs_context

centos安装baidupcs相关推荐

  1. CentOS 安装docker.ce报错提示containerd.io >= 1.2.2-3问题

    centos安装docker.ce遇到报错,提示如下 # yum install -y docker-ce Last metadata expiration check: 0:01:49 ago on ...

  2. CentOS安装crontab

    CentOS安装crontab: yum install crontabs 说明: service crond start //启动服务 service crond stop //关闭服务 servi ...

  3. CentOS 安装Apache

    # centOS 安装A M P 环境 [参考简书作者,非常感谢!!!](https://www.jianshu.com/p/bc14ff0ab1c7) ## 一 Apache 环境安装 1 安装Ap ...

  4. centos 安装 NTFS支持

    2019独角兽企业重金招聘Python工程师标准>>> 参考的原文网址: centos安装完之后,默认是不支持NTFS磁盘格式的,解决的方法之一就是安装NTFS-3G模块,但是默认的 ...

  5. centos安装及网络配置

    感谢老师传授,共同学习!谢谢!仅供自己日后复习之用! centos安装关键点: 创建分区: / 系统分区 /boot 启动分区 SWAP 交换分区,虚拟内存.主要是缓解物理内存不足. 虚拟化软件: V ...

  6. centos安装tensorFlow的java环境

    参考问题汇总 centos安装tensorFlow版本的时候会遇到的一些问题,参考这个链接:https://blog.csdn.net/luoyexuge/article/details/783212 ...

  7. centos 安装 svn

    centos 安装svn服务 1. # yum install subversion 2.然后检查下安装的版本号 因为版本号不同可能会出现不同的情况 版本 信息 [root@VM_137_37_cen ...

  8. Linux(CentOS)安装分区方案

    为什么80%的码农都做不了架构师?>>>    Linux(CentOS)安装分区方案 /boot(不是必须的):/boot分区用于引导系统,它包含了操作系统的内核和在启动系统过程中 ...

  9. CentOS安装jdk的三种方法

    2019独角兽企业重金招聘Python工程师标准>>> CentOS安装jdk的三种方法 环境 Linux版本:CentOS 6.5.Ubuntu 12.04.5 JDK版本:JDK ...

最新文章

  1. Vue中组件数据的传递
  2. 融资 6 亿美元后,商汤发布 5 大 AI 产品
  3. 项目实战之组件化架构
  4. Python函数默认参数陷阱
  5. Oracle12如何重装,Oracle怎么重新安装?
  6. 通过小程序给公众号传递消息_多输入现场消息传递应用程序概念
  7. Lock的lock()方法
  8. Linux 系统检测工具
  9. SSL 1108——【USACO 2.1】海明码(DFS)
  10. 【译】JavaScript面试问题:事件委托和this
  11. Vue 报错Error: No PostCSS Config found解决办法
  12. 企业微信api消息接口调用
  13. Acer 4750 安装黑苹果_超详细安装黑苹果教程
  14. 软件测试到底有多重要?
  15. 【计算机网络 1】计算机网络概述,nginx原理jiangmo
  16. java之集合ArrayList,LinkedList,HashMap运用
  17. Nginx ACCESS日志过滤CSS JS 图片等静态文件——筑梦之路
  18. 移动端web app自适应布局探索与总结
  19. 用turtle作画玩一玩吧
  20. PS中的颜色模式,8位、16位、32位区别、以及背景内容的区别

热门文章

  1. Centos 安装DNS服务器并配置无查询结果转发功能
  2. 有关小米4发布会的感想
  3. Cocos2d-x 3D渲染技术 (二)
  4. VMware Workstation 9上安装MAC OS X Lion 10.8图解
  5. 百度最近K淘客站,K的挺凶啊!
  6. 【清单革命】程序员节快乐,愿我们奔赴在各自的热爱里(1024随笔)
  7. 浅谈计算机网络维护工作和管理策略
  8. Google Adsense账号快速申请教程(网赚)
  9. QT程序编译时的错误:QMAKESPEC has not been set, so configuration cannot be deduced.
  10. 基于vue加springmvc实现的房地产管理系统