cygwin编译的问题

RonnieCat 2014-11-20 07:14:55
用cygwin编译Linux的源码,报了下面的错误
checking for python2.7... (cached) /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python2.7
checking for Python library path... -L/usr/lib/python2.7 -lpython2.7
checking for Python site-packages path... /usr/lib/python2.7/site-packages
checking python extra libraries... ('', '-ldl')
checking python extra linking flags...
checking consistency of all components of python development environment... no
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================

有没有大虾可以帮忙看看啊,不胜感激了!!!
...全文
499 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2015-05-25
  • 打赏
  • 举报
回复
楼主为什么要费劲移植呢?为什么不在Windows下的虚拟机中直接运行Linux呢?
钱国正 2015-05-25
  • 打赏
  • 举报
回复
楼主搞定问题了没?
wxf54318 2014-12-02
  • 打赏
  • 举报
回复
应给是缺少某个库,或是环境变量配置有问题
二进制脑袋 2014-11-25
  • 打赏
  • 举报
回复
引用 4 楼 luoweicool 的回复:
[quote=引用 3 楼 turingo 的回复:] 在windows下编译linux内核的目的是什么?
移植....痛苦万分[/quote] 对于你Windows下cygwin编译后的Linux内核生产的映像格式有疑问,很好奇你究竟是移植到什么平台上?
RonnieCat 2014-11-25
  • 打赏
  • 举报
回复
引用 3 楼 turingo 的回复:
在windows下编译linux内核的目的是什么?
移植....痛苦万分
RonnieCat 2014-11-21
  • 打赏
  • 举报
回复
引用 1 楼 JiangWenjie2014 的回复:
你安装了python但是没有装devel包,它提示找不到python library,估计python没装完整吧,或者lib没有装在系统默认的目录里面


安装python-dev的包,但是会报错,不知道什么原因。cygwin下面应该怎么处理,
lib没有装在系统默认目录是什么意思呢?就是安装cygwin时候安装的啊,应该不会错吧
图灵狗 2014-11-21
  • 打赏
  • 举报
回复
在windows下编译linux内核的目的是什么?
JiangWenjie2014 2014-11-20
  • 打赏
  • 举报
回复
你安装了python但是没有装devel包,它提示找不到python library,估计python没装完整吧,或者lib没有装在系统默认的目录里面

24,855

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧