随笔分类 -  linux

上一页 1 2
linux源码研究
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) 推荐(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) 推荐(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 袁晓平 阅读(695) 评论(0) 推荐(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) 推荐(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 袁晓平 阅读(261) 评论(0) 推荐(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) 推荐(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) 推荐(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) 推荐(0)
ubuntu访问windows共享文件夹
摘要:在windows下共享文件夹xxx在ubuntu下建立文件夹/home/musictom/hostshare sudo mkdir /home/musictom/hostshare虚拟机里访问主机的ip地址为192.168.80.1sudo mount //192.168.80.1/xxx /home/musictom/hostshare -o username=administrator,password=123,dmask=777,fmask=777参考地址:http://blog.csdn.net/jiangjingui2011/article/details/6400710 阅读全文
posted @ 2012-04-30 13:06 袁晓平 阅读(205) 评论(0) 推荐(0)
ubuntu 11.10 x64 安装oracle 11gR2时碰到的问题及解决方法
摘要:INFO: /home/musictom/oracle/product/11.2.0/dbhome_2/bin/genclntshINFO: /INFO: usrINFO: /INFO: binINFO: /INFO: ldINFO: :INFO: INFO: cannotINFO: INFO: find /usr/lib64/libpthread_nonshared.acollect2: ld returned 1 exit statusgenclntsh: Failed to link libclntsh.so.11.1INFO: make: *** [client_sharedlib] 阅读全文
posted @ 2012-04-24 13:27 袁晓平 阅读(3080) 评论(0) 推荐(0)

上一页 1 2