易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux环境的AMP安装 MSSQL扩展安装


Linux要安装mssql扩展,必须首先安装freetds,安装过程如下:
1、假设源文件目录为/webServ,安装目录为/opt/freetds。
1) >cd /webServ
2) 下载, >wget ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
3) 解压, >tar -zxvf freetds-stable.tgz
4) 进入, >cd freetds-0。82
5) 安装, >./configure --enable-msdblib --prefix=/opt/freetds
6) >make
7) >make install
2、编译mssql扩展,假设PHP安装源码包为/webServ/php-4.4.9
1) 进入模块源码目录,>cd /webServ/php-4.4.9/ext/mssql
2) 生成编译配置文件,>/opt/php4/bin/phpize
3) 安装,>./configure --with-php-config=/opt/php4/bin/php-config --with-mssql=/opt/freetds
4) >make
5) >make install
6) 把生成的mssql.so模块复制到PHP的扩展目录,修改php.ini,加入mssql模块
注:
在编译配置的时候可能会遇到找不到FreeTDS的错误:configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory,按照官方的解释http://www.freetds.org/news.html
,PHP检测一些文件以确定FreeTDS是否安装,由于新版的FreeTDS不再安装这些文件,导致PHP编译失败。只需建立两个空文件即可。如下:
>touch /opt/freetds/include/tds.h
>touch /opt/freetds/lib/libtds.a


相关文档:

实战Linux Bluetooth编程(六) L2CAP编程实例

例一:发送Signaling Packet:
Signaling Command是2个Bluetooth实体之间的L2CAP层命令传输。所以得Signaling Command使用CID 0x0001.
多个Command可以在一个C-frame(control frame)中发送。
 如果要直接发送Signaling Command.需要建立SOCK_RAW类型的L2CAP连接Socket。这样才有机会自己填充Command Code,Identi ......

实战Linux Bluetooth编程 (七) SDP协议

Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......

虚拟机下的linux与windows互ping

第一次写东东,要有不对的地方,还请高手指点。
虚拟机下的linux与windows互ping:
1。cmd下输入命令:ipconfig/all,找到windows正在使用的网卡的ip地址,记住当前的ip地址和网段。
2。在虚拟机下的网络设置中(虚拟机软件右下角的网卡图标)网络为桥接模式,这个很重要,一定记住。
3。在linux下输入以下命令, vi /e ......

***********Linux学习笔记汇总***********

linux目录架构
/       根目录
/bin         常用的命令   binary   file   的目錄
/boot       存放系统启动时必须读取的档案,包括核心   (kernel)   在内
          /boot/grub/menu.lst   &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号