给ubuntu12.04换3.4.6的内核
摘要:从kernel.org下载3.4.6版本的kernel源码,至/home/musictom/Downloads解压tar -xvfj linux-3.4.6.tar.bz2cd linux-3.4.6make menuconfig根据自己的需要进行配置后makesudo make installsudo make modules_installln -s /boot/vmlinuz-3.4.6 /vmlinuz-3.4.6mkinitramfs -o /boot/initrd.img-3.4.6 /lib/modules/3.4.6 ln -s /boot/initrd.img-3.4.6 /
阅读全文
posted @
2012-07-29 21:52
袁晓平
阅读(224)
推荐(0)
this linker was not configured to use sysroots和C compiler cannot create executables的解决办法
摘要:this linker was not configured to use sysrootsC compiler cannot create executables在ubuntu下想编译linux kernel,键入命令make menuconfig时,报出this linker was not configured to use sysroots查了一下,是因为/usr/local/bin/ld在编译前没有被配置为configure --with-sysroot所以下载了binutils-2.22想编译一个带sysroot的键入命令 ../binutils-2.22/configure --
阅读全文
posted @
2012-07-28 23:52
袁晓平
阅读(2962)
推荐(0)
10moons ut340linux驱动编译安装方法
摘要:从http://linuxtv.org/downloads/drivers/下载源代码,里面按时间分了版本,一般选最新的,我选择的是2012-7-25版本的,地址为http://linuxtv.org/downloads/drivers/linux-media-2012-07-25.tar.bz2放到/home/musictom/Downloads/driver目录下tar -xvf /home/musictom/Downloads/driver/linux-media-2012-07-25.tar.bz2打开terminal,cd /home/musictommake -C /lib/mod
阅读全文
posted @
2012-07-26 00:38
袁晓平
阅读(544)
推荐(0)
sql server存储过程分页,支持cte
摘要:支持CTE的复杂语句调用:原始调用SQL语句:with t as (select ma_id from sa_affair_info where ad_id=2203 and ai_affair_status=2 and ai_is_pass='true'),q as(select m.* from SA_Main_Affair m join t on t.ma_id=m.ma_index_no),p as (select ai.* from sa_affair_info ai join q on ai.ma_id=q.ma_id where ai_affair_status=
阅读全文
posted @
2012-07-23 11:36
袁晓平
阅读(501)
推荐(0)
cygwin下gdb7.4编译
摘要:cd /home/musictommkdir gdb-7.4-i386-pc-cygwin-outcd gdb-7.4-i386-pc-cygwin-out../gdb-7.4/configure --with-gmp=/usr/local --with-mpc=/usr/local/ --with-mpfr=/usr/local/ --prefix=/usr/local/gcc-4.7.1-i386-pc-cygwin/ --with-build-libsubdir=/usr/local/lib/makemake install中途会遇到错误:configure: error: no ter
阅读全文
posted @
2012-07-22 12:49
袁晓平
阅读(694)
推荐(0)
cygwin下的gcc-4.7.1编译心得
摘要:步骤:1、先编译gmp mpfr mpc这几个库,注意configure时--prefix=/usr/local/2、中间碰到过can not compute suffix的错误,在命令export LD_LIBRARY_PATH=/usr/local/:${LD_LIBRARY_PATH}export LD_RUN_PATH=/usr/local/:${LD_RUN_PATH}也不行,最后修改了/home/musictom/.bash_profile加上了如下行:PATH="/bin/:/lib/:/usr/sbin/:/usr/local/bin/:/usr/i686-pc-mi
阅读全文
posted @
2012-07-21 23:03
袁晓平
阅读(1417)
推荐(0)
mpc-0.9编译方法
摘要:解压源代码至mpc-0.9mkdir mpc-0.9-outcd mpc-0.9-out../mpc-0.9/configure --prefix=/home/musictom/mpc-0.9-install --with-gmp=/home/musictom/gmp-5.0.5-install --with-mpfr=/home/musictom/mpfr-3.1.0-installmakemake install如果要让库在arm机器上能运行,要加上--host=arm-eabi选项
阅读全文
posted @
2012-07-14 21:19
袁晓平
阅读(260)
推荐(0)
mpfr-3.1.0编译方法
摘要:解压源代码至mpfr-3.1.0mkdir mpfr-3.1.0-out../mpfr-3.1.0/configure --prefix=/home/musictom/mpfr-3.1.0-install --with-gmp=/home/musictom/gmp-5.0.5-installmakemake install
阅读全文
posted @
2012-07-14 21:07
袁晓平
阅读(346)
推荐(0)
gmp-5.0.5编译
摘要:1、解压源代码至gmp-5.0.52、mkdir gmp-5.0.5-out3、cd gmp-5.0.5-outCPPFLAGS=-fexceptions ../gmp-5.0.5/configure--enable-cxx --prefix=/usr/localmakemake installmake check
阅读全文
posted @
2012-07-14 20:55
袁晓平
阅读(431)
推荐(0)
binutils-2.22编译心得
摘要:最近想自己编译出arm的gcc,其中必须的一步是必须编译binutils,所以尝试了一下,步骤如下:1、安装cygwin,选择gcc及libiconv库,安装,不要用mingw的编译器编译,我查了下,好象mingw里是没有fcntl.h的,所以编时会报错的,可以用gcc -v查看编译器的信息2、解压binutils-2.223、mkdir binutils-2.22-arm-unknown-eabi-outcd binutils-2.22-arm-unknown-eabi-out../binutils-2.22/configure --prefix=/home/musictom/binutil
阅读全文
posted @
2012-07-14 18:18
袁晓平
阅读(1391)
推荐(0)