QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4537|回复: 5

SkyEye-1.3.5_rc1的安装问题

[复制链接]
发表于 2013-3-7 19:34:59 | 显示全部楼层 |阅读模式
ubuntu12.04LTS上从源码安装SkyEye-1.3.5_rc1!
安装方法
1 安装基本库
sudo apt-get install libgtk2.0-dev pkg-config libatk1.0-dev libpango1.0-dev libfreetype6-dev libglib2.0-dev libx11-dev binutils-dev libncurses5-dev libxpm-dev libc6-dev build-essential libxpm-dev libncurses5-dev
2 ./configure
3make lib
4 make
  出现错误
/bin/bash: python-config: command not found
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crti.o /usr/lib/gcc/i686-linux-gnu/4.6/crtbeginS.o  .libs/skyeye_module.o .libs/support.o .libs/exec_info.o .libs/breakpoint.o .libs/thread_ctrl.o .libs/sim_ctrl.o .libs/step.o .libs/scheduler.o .libs/skyeye_thread.o .libs/skyeye_cell.o .libs/skyeye_exec.o .libs/skyeye_io.o .libs/mman.o .libs/usleep.o .libs/gettimeofday.o .libs/skyeye_pref.o .libs/skyeye_arch.o .libs/skyeye_options.o .libs/skyeye_config.o .libs/misc_options.o .libs/conf_obj.o .libs/skyeye_class.o .libs/skyeye_interface.o .libs/skyeye_attr.o .libs/skyeye_conf_map.o .libs/skyeye_log.o .libs/skyeye_command.o .libs/skyeye_cli.o .libs/default_command.o .libs/skyeye_mm.o .libs/skyeye_mach.o .libs/skyeye_device.o .libs/pen_buffer.o .libs/skyeye_uart_ops.o .libs/skyeye_signal.o .libs/bank_ops.o .libs/io.o .libs/ram.o .libs/flash.o .libs/skyeye_bus.o .libs/bus_recoder.o .libs/addr_space.o .libs/loader_elf.o .libs/loader_file.o .libs/callback.o .libs/symbol.o .libs/bfd_target.o .libs/check.o .libs/disas.o .libs/arm-dis.o   -Wl,-rpath -Wl,/home/mei/Downloads/skyeye-1.3.5_rc1/third-party/bfd/.libs -L/home/mei/Downloads/skyeye-1.3.5_rc1/third-party/bfd/.libs /home/mei/Downloads/skyeye-1.3.5_rc1/third-party/bfd/.libs/libbfd.so -L/home/mei/Downloads/skyeye-1.3.5_rc1/third-party/libiberty/pic -L/home/mei/Downloads/skyeye-1.3.5_rc1/libltdl/.libs -lltdl -lncurses -lpthread -liberty -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-linux-gnu/4.6/crtendS.o /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crtn.o    -Wl,-soname -Wl,libcommon.so.0 -o .libs/libcommon.so.0.0.0
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make[2]: *** [libcommon.la] Error 1
make[2]: Leaving directory `/home/mei/Downloads/skyeye-1.3.5_rc1/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mei/Downloads/skyeye-1.3.5_rc1'
make: *** [all] Error 2
我在/usr/lib  /usr/local/lib 下面都没有找到ibltdl.so 类的文件啊?? 怎么解决啊?
发表于 2013-3-8 19:06:43 | 显示全部楼层
1、你的输出有一个python的错误如下,建议安装python:
/bin/bash: python-config: command not found
2、另外libltdl库SkyEye可以自己编译生成
回复

使用道具 举报

 楼主| 发表于 2013-3-9 10:03:14 | 显示全部楼层
我从新安装了一下python(用的是apt-get python_dev),结果能够启动skyeye了,可是启动又有错误!!!!
错误如下:
mei@mei-ThinkPad-R400:/opt/skyeye/bin$ skyeye
SkyEye 1.3.5
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/skyeye/bin/skyeye_cli.py", line 4, in <module>
    from skyeye_common_module import *
  File "/opt/skyeye/bin/skyeye_common_module.py", line 3, in <module>
    from ctypes import *
  File "/usr/local/lib/python2.7/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
ImportError: /usr/local/lib/python2.7/lib-dynload/_ctypes.so: undefined symbol: PyFloat_Type

我在网上,找了到了很多人都遇到这样的问题。找到唯一的一个解决办法是:

python的问题,安装需要加参数--enable-shared(./configure --enable-shared)

我按照这个思路,从新安装了python2.7.3,然后从新安装了skyeye  结果还是出新错误undefined symbol: PyFloat_Type?这个是什么原因?  怎么解决?


我用的系统是ubuntu 12.04LTS!
回复

使用道具 举报

发表于 2013-3-10 14:38:43 | 显示全部楼层
你可以通过加"-n"参数尝试不使用命令行启动,python主要是负责命令行的解析和显示的。例如,启动一个elf的linux内核可以用如下:
skyeye -n -e  vmlinux
回复

使用道具 举报

 楼主| 发表于 2013-3-10 19:49:34 | 显示全部楼层
恩,这个方法倒是可行!
回复

使用道具 举报

发表于 2013-5-24 04:12:32 | 显示全部楼层
ldconfig
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-12-4 01:15 , Processed in 0.065428 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表