1、源码下载:
 
wget https://nchc.dl.sourceforge.net/project/sshpass/sshpass/1.06/sshpass-1.06.tar.gz

  

2、解压
 
 gunzip sshpass-1.06.tar.gz
tar -xvf sshpass-1.06.tar
cd sshpass-1.06

 

3、生成makefile
 
which xlc
/usr/vacpp/bin//xlc
./configure CC=/usr/vacpp/bin//xlc

  

如果直接用

./configure

  

不能直接编译通过,会报错误
 
225_billmdb%make
make all-am
source='main.c' object='main.o' libtool=no DEPDIR=.deps depmode=xlc /bin/sh ./depcomp cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -g -c -o main.o main.c
"main.c", line 54.42: 1506-209 (S) Character constants must end before the end of a line.
"main.c", line 54.20: 1506-076 (W) Character constant 't define posix_openpt' has more than 4 characters. No more than rightmost 4 characters are used.
"main.c", line 343.101: 1506-209 (S) Character constants must end before the end of a line.
"main.c", line 343.69: 1506-076 (W) Character constant 's controlling TTY is now closed' has more than 4 characters. No more than rightmost 4 characters are used.
"main.c", line 435.102: 1506-209 (S) Character constants must end before the end of a line.
"main.c", line 435.53: 1506-076 (W) Character constant 's good enough for matching "Password: ", though.' has more than 4 characters. No more than rightmost 4 characters are used.
"main.c", line 54.1: 1506-046 (S) Syntax error.
make: The error code from the last command is 1. Stop.
make: The error code from the last command is 2. Stop.

  

 
因为默认的aix的c编译器为cc,而cc对于//***注释的方法不认,需要全部删除main.c文件中这种注释
 
4、make
 
make

  

 
5、make产生的问题
 
225_billmdb%make
make all-am
source='main.c' object='main.o' libtool=no DEPDIR=.deps depmode=xlc /bin/sh ./depcomp /usr/vacpp/bin//xlc -DHAVE_CONFIG_H -I. -g -c -o main.o main.c
/usr/vacpp/bin//xlc -g -o sshpass main.o
ld: 0711-317 ERROR: Undefined symbol: .rpl_malloc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: The error code from the last command is 8. Stop.
make: The error code from the last command is 2. Stop.

  

在configure 生产的config.h文件中注释掉或者删掉
 
/* Define to rpl_malloc if the replacement function should be used. */
/*#define malloc rpl_malloc*/

  

6、重新make,大功告成
 
225_billmdb%sshpass
Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
-f filename Take password to use from file
-d number Use number as file descriptor for getting password
-p password Provide password as argument (security unwise)
-e Password is passed as env-var "SSHPASS"
With no parameters - password will be taken from stdin -P prompt Which string should sshpass search for to detect a password prompt
-v Be verbose about what you're doing
-h Show help (this screen)
-V Print version information
At most one of -f, -d, -p or -e should be used

  

source install sshpass in aix的更多相关文章

  1. centos source install

    CentOS Kernel Source Install Mar 12th, 2012 | Comments CentOS kernel source install, first off if yo ...

  2. source install MacPorts--checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions

    If you installed MacPorts using the package installer, skip this section. To install MacPorts from t ...

  3. CentOS Kernel Source Install

    http://linuxmoz.com/centos-kernel-source-install/

  4. Linux命令:sshpass

    sshpass介绍 sshpass是一款凡是为凡是使用ssl方式访问的操作提供一个免输入密码的非交互式操作,以便于在脚本中执行ssl操作,如ssh,scp等.sshpass是一家以色列公司Lingnu ...

  5. 烤鸭的Source Insight学习笔记

    如果你觉得这网页排版不好看,可以去下载我上传的word版:<烤鸭的Source Insight学习笔记.doc> http://download.csdn.NET/detail/benka ...

  6. install 命令用法详解

    install 命令用法详解 http://man.linuxde.net/install install命令的作用是安装或升级软件或备份数据,它的使用权限是所有用户.install命令和cp命令类似 ...

  7. puppet aix package 之rsync安装

    AIX中使用RPM安装RSync遇到的问题及解决办法 最近在折腾AIX的系统,它里面本来有一个包管理工具叫installp,但是俺不会用,也不知道从那里找包. 幸亏AIX提供了RPM的支持,所以安装软 ...

  8. aix Mysql-Rpm puppet puppetAgent

    http://www.bullfreeware.com/toolbox.php   (Large Open Source Software Archieve for AIX 提供MySQL5.1 fo ...

  9. aix创建lv 在lv上创建文件系统

    创建LV命令: mklv -y softlv -t jfs2 rootvg 15G 创建文件系统命令: crfs -v jfs2 -d/dev/softlv -m /soft -A yes 把soft ...

随机推荐

  1. React-Native 之 项目实战(五)

    前言 本文 有配套视频,可以酌情观看. 文中内容因各人理解不同,可能会有所偏差,欢迎朋友们联系我讨论. 文中所有内容仅供学习交流之用,不可用于商业用途,如因此引起的相关法律法规责任,与我无关,如文中内 ...

  2. Java Script 字符串操作

    JS中常用几种字符串操作: big() small() bold() fontcolor() fontsize() italics() strike() link() charAt() charCod ...

  3. 如何精准高效的实现视觉稿?------前端开发辅助工具AlloyDesigner使用介绍

    AlloyDesigner:http://alloyteam.github.io/AlloyDesigner/ 介绍:AlloyDesigner是腾讯开发的一款工具,其在页面构建过程中,直接嵌入开发的 ...

  4. struts2 之 struts2数据校验

    1. 数据校验一般分为2类:前端的校验(js校验),后端的校验(java代码):实际开发中大部分情况下都是采用js校验.在对数据安全要求较高的情况下可能会采用后端验证. 2.  Struts2提供了后 ...

  5. 浅谈MVC页面之间参数传递

    关于MVC页面之间的传值,有多种方式,下面,我们就Html.RenderAction 方式 和 Html.RenderPartial 方式 来给大家分享一下有什么不同. 一.Html.RenderAc ...

  6. IOS——触摸事件 视图检测和事件传递

    iPhone上有非常流畅的用户触摸交互体验,能检测各种手势:点击,滑动,放大缩小,旋转.大多数情况都是用UI*GestureRecognizer这样的手势对象来关联手势事件和手势处理函数.也有时候,会 ...

  7. php7 redis扩展编译安装

    提示:php7版本不支持redis2点几的扩展 上正文: wget -c https://github.com/phpredis/phpredis/archive/php7.zip unzip php ...

  8. java中使用net.sf.json对json进行解析

    net.sf.json依赖的包很多. 有commons-collections,commons-beanutils.jar,commons-httpclient.jar,commons-lang.ja ...

  9. sdkman安装

    软件开发工具管理包(Software Development Kit Manager,简称SDKMAN) 用来管理多个版本的开发环境的工具.提供命令行来安装.切换.删除.列出候选版本. 官网地址:ht ...

  10. NancyFx 2.0的开源框架的使用-Authentication

    新建一个空的项目 新建好了空的项目以后,接着通过NuGet安装一下三个包 Nancy Nancy.Hosting.Aspnet Nancy.ViewEnglines.Razor 然后在项目中添加Mod ...