在linux下安装Sqlite
安装Sqlite
首先是下载sqlite-3.3.8.tar.gz。
1、解压sqlite-3.3.8.tar.gz:tar –xzvf sqlite-3.3.8.tar.gz,得到sqlite-3.3.8的文件。
2、在sqlite-3.3.8同一目录下创建sqlite文件:mkdir sqlite
3、Cd sqlite
4、执行configure生成安装程序
5、 ../sqlite-3.3.8/configure --prefix=/home/work/zdw/sqlite/sqlite
6、编译并安装 make && make install
7、如果出现下列错误
8、../sqlite-3.3.8/src/tclsqlite.c: In function `DbUpdateHandler':
9、../sqlite-3.3.8/src/tclsqlite.c:333: warning: passing arg 3 of `Tcl_ListObjAppendElement' makes pointer from integer without a cast
10、 ../sqlite-3.3.8/src/tclsqlite.c: In function `tclSqlFunc':
11、 ../sqlite-3.3.8/src/tclsqlite.c:419: warning: passing arg 1 of `Tcl_NewByteArrayObj' discards qualifiers from pointer target type
12、 这个都是tcl相关的错误,可以先安装ActiveTcl以解决.假如你不需要tcl支持,那么这个错误可以这样避免:
13、 ../sqlite-3.3.8/configure --disable-tcl --prefix=/home/work/zdw/sqlite/sqlite
14、 编译并安装 make && make install
15、 可执行文件sqlite3已经生成在 /home/work/zdw/sqlite/sqlite /bin/ 目录下
16、 建立数据库test.db 执行以下命令:
17、 /home/work/zdw/sqlite/sqlite /bin/sqlite3 test.db
18、 如果出现下面字样表明编译安装已经成功了.
19、 SQLite version 3.3.8
20、 &nb
相关文档:
例一:发送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 ......
Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......
Linux C + + Training
Syllabus
________________________________________
1, Linux Operating System
System Environment: Ubuntu GNU / Linux, RedHat Linux AS5,
FreeBSD
Course Requirements: proficient use of commonly used Linux
/ UNIX commands.
Time: 1 week.
______________________________ ......
虽然我们习惯于linux下命令行操作,但是安装某些软件必须是基于GUI下面的,这个时候总不能跑到机房去安装吧,但我们可以使用Xmanager软件实现对linux进行远程控制.
第一步,我们在
LINUX
系统下,修改
/etc/X11/xdm/Xaccess
文件,找到下面语句:
# *# any host can get a login window
去掉最前面的
#
号 ......
名称
daemon-运行于后台
概要
#include <unistd.h>
int daemon(int nochdir, int noclose);
描述
daemon()函数,主要用于某些程序希望自己脱离终端的控制而运行 ......