Chinaunix首页 | 论坛 | 博客
  • 博客访问: 17460
  • 博文数量: 7
  • 博客积分: 15
  • 博客等级: 民兵
  • 技术积分: 30
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-10 10:17
文章分类
文章存档

2014年(2)

2013年(5)

我的朋友

分类: LINUX

2013-03-21 10:26:52

转自:http://www.lampdocs.com/blog/2010/01/stropts-h-no-such-file-or-directory-how-to-fix/

It is a known issue that modern Linux systems are missing stropts.file. You will probably have some problems when trying to compile software like pppd, pptp, gftp, etc from sources. Seems to be a strange thing, as you won’t get any errors in previous versions of Linux. Most recent versions of  don’t contain this file, that’s why we need to know what to do if software compilation fails because of missing stropts.h.

Let’s determine when we need to have this file on our machine.When we’re compiling any “old” package from sources, we may receive the following error:

What could be the reason and why isn’t this file included into our Linux distribution?This error means that your system doesn’t support STREAMS.

Linux doesn’t support STREAMS (many years ago it was available as a third party module, but it hasn’t worked for years).  is part of a POSIX XSR option, which is not supported in modern Linux distributions. Do we really need it in Linux?

This means that software you’re trying to compile, will not use the functions listed under as they’re not supported by the operating system. So we will do a simple trick that will let you to compile your software without these functions.

Since the  is required for a successful compilation, the most simple way to solve the issue is to create a blank file named  under /usr/include. You may want to put any comments there, this way you won’t forget what was the reason to create this file.

This simple trick will help you to compile pptp (1.7.2),  pppd (2.4.5), and I think that the list will be much bigger. That was just my experience, but the sense remains the same: you need this file for a successful compilation. Just create it and have fun!

阅读(4210) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~