`
mmdev
  • 浏览: 12846065 次
  • 性别: Icon_minigender_1
  • 来自: 大连
文章分类
社区版块
存档分类
最新评论

编译静态expect现undefined reference to `openpty' 错误解决方法

阅读更多

错误提示如下:

...

gcc \
-pipe -O2 -fomit-frame-pointer -Wall \
-Wl,--export-dynamic \
-o expect exp_main_exp.o \
-L/work/pkgs/expect5.45 -lexpect5.45 \
-L/work/pkgs/tcl8.5.9/unix -ltcl8.5 \
-ldl -lieee -lm \
-Wl,-rpath,/usr/local/lib \
-Wl,-rpath,/usr/local/lib/expect5.45
/work/pkgs/expect5.45/libexpect5.45.a(pty_termios.o): In function `exp_getptymaster':
pty_termios.c:(.text+0x2f5): undefined reference to `openpty'
collect2: ld returned 1 exit status
make: *** [expect] Error 1

解决方法:

添加util链接库 -lutil

分享到:
评论

相关推荐

    交叉编译expect armv7 aarch64

    交叉编译expect armv7 aarch64

    ubuntu上expect的安装包

    ubuntu上默认没有expect,把这两个deb包安装一个就可以使用expect 一个是tcl一个是expect

    expect4j.jar 1.0

    Expect4j is an attempt to rewrite Expect in Java and provide bindings to the TclJava interpreter. The goal is to be able to port existing Tcl code bases that use Expect directly to Java without ...

    expect.rar

    MT7628 MT7621 已经编译好的expect,可以下载直接使用,免去交叉编译的麻烦 expect是一个免费的编程工具,用来实现自动的交互式任务,而无需人为干预。说白了,expect就是一套用来实现自动交互功能的软件。 在...

    Expect中文教程 Expect中文教程

    Expect中文教程 Expect中文教程 Expect中文教程 Expect中文教程

    IAR编译常见错误

    列举IAR常见的错误,也可以当做IAR编译错误查询文档,非常全面

    expect5.45.4.tar

    Introduction to Expect The Expect package was installed in the LFS temporary tools directory for testing other packages. These procedures install it in a permanent location. It contains tools for ...

    expect.deb离线包(包含tcl8.5_8.5.11-1ubuntu1和expect_5.45-2)

    expect.deb离线包,包含 expect_5.45-2_amd64.deb tcl8.5_8.5.11-1ubuntu1_amd64.deb两个 使用命令 dpkg --install expect_5.45-2_amd64.deb dpkg --install tcl8.5_8.5.11-1ubuntu1_amd64.deb 可以直接进行安装,不...

    Expect and using Expect with PERL

    EXPECT: A TCL based Toolkit for Automating Interactive Tasks. Leveraging the task specific capabilities of Expect with the power and flexibility of PERL. Presented to Philadelphia PERLMongers, ...

    Expect 手册中文版

    Expect手册中文版 Expect-----能与交互式程序进行“可程序化”会话的脚本语言 概述: Expect是一种能够按照脚本内容里面设定的方式与交互式程序进行“会话”的程序。根据脚本内容,Expect可以知道程序会提示或反馈...

    expect教程大全(exploring expect、expect教程中文版等7本教程)

    expect教程大全(exploring expect、expect教程中文版等7本教程)包含了exploring expect完整版的pdf文档、expect教程中文版、Expect简介及应用、ExpectCourse、autoexpect等6个pdf文档,为目前网上可以收集到的最全的...

    用expect 实现切换用户时自动输入密码.txt

    send "ls\r" //expect 用spend方法调用ls 命令,并且回车(“\r”) expect "#" send "sh aaa.sh\r" //调用sh aaa.sh,即执行一个脚本文件aaa.sh。 expect "#" send "echo $?\r" sleep 10 interact

    expect手动安装.zip

    expect是一个免费的编程工具,用来实现自动的交互式任务,而无需人为干预。说白了,expect就是一套用来实现自动交互功能的软件。 在实际工作中,我们运行命令、脚本或程序时,这些命令、脚本或程序都需要从终端输入...

    NUnit Pocket Reference

    And with the NUnit Pocket Reference, IT managers will know to expect when they implement unit testing in their projects. It is the only book you'll need on this popular and practical new open source ...

    Expect工具Expectit.zip

    Expectit - 是纯 Java 1.6 实现的 Expect 工具。简单易用和可扩展,全新编写无需依赖第三方库,使用管道和非堵塞 API 基于 NIO 实现。 Maven:  <groupId>net.sf.expectit</groupId>  <artifactId>expectit-core ...

    expect.as:ActionScript 3 的 BDD 风格断言库

    expect( undefined ) . not . to . be . ok() ; truthy : 断言该值等于 true expect( true ) . to . be . truthy() ; expect( 0 ) . not . to . be . truthy() ; false :断言该值等于 false expect( false ) .

    expect5.43.0和tcl8.4.11.zip

    expect据说是交互性很强的脚本语言,但是expect依赖于tcl,但linux系统里一般不自带安装tcl,需要手动安装

    expect在windows下使用的

    windows下可以使用的expect安装文件

    14.Shell脚本编程之expect.md

    Shell编程之expect

    expect

    expect和Tcl的安装tar包,以及expect的补丁包,里面附有简单的安装说明,适合于需要使用expect脚本语言的人

Global site tag (gtag.js) - Google Analytics