在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
相关文档:
1. HCI层协议概述:
HCI提供一套统一的方法来访问Bluetooth底层。如图所示:
从图上可以看出,Host Controller Interface(HCI) 就是用来沟通Host和Module。Host通常就是PC, Module则是以各种物理连接形式(USB,serial,pc-card等)连接到PC上的bluetooth Dongle。
在Host这一端:application,SDP,L2cap等协议 ......
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <errno.h>
#include <string.h>
#define MAX 1024
int get_file_count(char *root)
{
DIR *dir;
struct dirent * ptr;
int total = 0;
char path[MAX];
dir = opendir(root ......
其实VIM也能把编译 调试集成在一起,像是一个IDE一样。
首先现在VIM的源码,因为要集成调试环境的话需要重新编译VIM才行,所以我们不如重新安装一个。
VIM的现在地址:
http://www.vim.org/sources.php
然后下载VIMGDB,这是vim的集成调试环境的一个重要插件程序。
地址:http://sourceforge.net/projects/clewn/files ......
名称
daemon-运行于后台
概要
#include <unistd.h>
int daemon(int nochdir, int noclose);
描述
daemon()函数,主要用于某些程序希望自己脱离终端的控制而运行 ......
平滑迁移的技巧和技术
文档选项
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
heig ......