ImportError: No module named _sqlite3

If you are under RHEL/centos 6, you can try this:

cp /usr/lib64/python2.6/lib-dynload/_sqlite3.so /usr/local/lib/python2.7/sqlite3/

link: http://stackoverflow.com/questions/11394013/problems-with-python-2-7-3-on-centos-with-sqlite3-module

How to generate gcc debug symbol outside the build target?

How to generate gcc debug symbol outside the build target?

1. how to strip elf.

2. how to separate debug information from elf files.

3. how to use debug information in gdb(or ida pro).

ida pro : file -> load file -> DBG file

4. how to merge debug information into elf files.

How debuggers work: Part 3 – Debugging information

About debugging information.

How to find functions, variables and line number based on debugging information(dwarf)

CentOS Yum Source && How to replace an package with official package

Config to use centos official yum source: 

For CentOS 7 or Redhat 7:

  1. Download the KEY file and put it in right place:

wget http://vault.centos.org/7.0.1406/os/x86_64/RPM-GPG-KEY-CentOS-7 

mv RPM-GPG-KEY-CentOS-7 /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 

2. edit repo file:

vim /etc/yum.repos.d/centos.repo

put the following content in:

###########################begin########

[base]

name=CentOS-$releasever – Base

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra

#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates

[updates]

name=CentOS-$releasever – Updates

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra

#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful

[extras]

name=CentOS-$releasever – Extras

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra

#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever – Plus

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra

#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

##############EOF###############

Commands for replace package with another:

e.g, replacing zlib-1.2.7-13.2.alios7.x86_64 package with zlib-1.2.7-13.el7.x86_64, and then install zlib.i686 

(If you do not replacezlib-1.2.7-13.2.alios7.x86_64 with zlib-1.2.7-13.el7.x86_64, zlib.i686 could not be installed. because, both 64 and 32 bit arch softwares only could be intalled together with exactly same version. Otherwise error occurs like:

Error:  Multilib version problems found. This often means that the root

       cause is something else and multilib version checking is just

       pointing out that there is a problem.

)

commands:

#yum shell

Loaded plugins: langpacks

> remove zlib

> install zlib

> run

–> Running transaction check

—> Package zlib.x86_64 0:1.2.7-13.el7 will be installed

—> Package zlib.x86_64 0:1.2.7-13.2.alios7 will be erased

….

Linux的概念与体系

作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明。谢谢!

 

我在这一系列文章中阐述Linux的基本概念。Linux操作系统继承自UNIX。一个操作系统是一套控制和使用计算机的软件。UNIX是一套规定,所有UNIX系统服从同一个的哲学体系。我侧重于Linux的宏观机制,而忽略许多技术细节。我想要展示Linux的骨架,提供一份辅助学习的Linux地图。无论是下层的内核,还是上层的具体操作和应用编程,都可以放入到这个框架中。写这个系列还有一个原因:之前写Python教程,发现Python的标准库有很大一部分,只不过是Python调用操作系统的接口。为了熟练的使用这些接口,操作系统的基础知识是不可或缺的。
希望这系列文章对大家有用。

 

我使用Linux Ubuntu 12.04,以此作为测试平台。

0. Linux简介与厂商版本

 
1. Linux开机启动

2. Linux文件管理

3. Linux的架构

4. Linux命令行与命令

5. Linux文件管理相关命令

6. Linux文本流

7. Linux进程基础

8. Linux信号基础

9. Linux进程关系

10. Linux用户

11. Linux从程序到进程

12. Linux多线程与同步

13. Linux进程间通信

14. Linux文件系统的实现

 

===============================================

补充:

Linux常用命令

 

如果你对Linux命令感兴趣,向你推荐

http://www.cnblogs.com/peida/archive/2012/12/05/2803591.html

作者是peida,他很认真的讲解了常用命令以及配置文件。

 

参考资料

参考书,见豆列:
http://book.douban.com/doulist/1663811/