超越自我

lfs环境变量–不是正确的,只是对我才是正确的

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-27 23:28:22

heary@heary-Inspiron-1464:~$ sudo -s
root@heary-Inspiron-1464:~# export LFS=/mnt/lfs
root@heary-Inspiron-1464:~# mkdir -pv $LFS
root@heary-Inspiron-1464:~# mount -v -t ext3 /dev/sda1 $LFS
/dev/sda1 on /mnt/lfs type ext3 (rw)
root@heary-Inspiron-1464:~# echo $LFS
/mnt/lfs
root@heary-Inspiron-1464:~# mkdir -v $LFS/tools
mkdir: cannot create directory `/mnt/lfs/tools’: File exists
root@heary-Inspiron-1464:~# ln -sv $LFS/tools /
ln: creating symbolic link `/tools’: File exists
root@heary-Inspiron-1464:~# chown -v lfs $LFS/tools
ownership of `/mnt/lfs/tools’ retained as lfs
root@heary-Inspiron-1464:~# chown -v lfs $LFS/sources
ownership of `/mnt/lfs/sources’ retained as lfs
root@heary-Inspiron-1464:~# su – lfs

下一步是在宿主系统上创建一个 /tools 符号链接,指向 LFS 分区上新创建的目录,这个命令同样要作为 root 用户运行:

Filed under: 操作系统 ; freeyun @ 2011-06-26 15:48:55
ln -sv $LFS/tools /

 

root@heary-Inspiron-1464:~# ls /mnt/lfs
lost+found  sources  tools
root@heary-Inspiron-1464:~# ln -s  /mnt/lfs/tools /tools
root@heary-Inspiron-1464:~# ll / |gre pool
ll: command not found
No command ‘gre’ found, did you mean:
Command ‘ge’ from package ‘pvm-examples’ (universe)
Command ‘grep’ from package ‘grep’ (main)
Command ‘gpre’ from package ‘firebird2.5-super’ (universe)
Command ‘gpre’ from package ‘firebird2.1-classic’ (universe)
Command ‘gpre’ from package ‘firebird2.5-classic-common’ (universe)
Command ‘gpre’ from package ‘firebird2.1-super’ (universe)
Command ‘re’ from package ‘re’ (universe)
Command ‘gle’ from package ‘gle-graphics’ (universe)
Command ‘grc’ from package ‘grc’ (universe)
Command ‘grc’ from package ‘gnuradio-companion’ (universe)
Command ‘grn’ from package ‘groff’ (main)
Command ‘gri’ from package ‘gri’ (universe)
gre: command not found
root@heary-Inspiron-1464:~# ls -l / |grep tools
lrwxrwxrwx   1 root root    14 Jun 26 15:30 tools -> /mnt/lfs/tools
root@heary-Inspiron-1464:~# chown lfs.lfs /mnt/lfs/tools -R
root@heary-Inspiron-1464:~# ls -l / |grep tools
lrwxrwxrwx   1 root root    14 Jun 26 15:30 tools -> /mnt/lfs/tools

做个记录

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-26 14:06:53

ug.la” “libldtestplug.la” )
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no elf_x86_64 “x86_64-unknown-linux-gnu”
mv -f .deps/objcopy.Tpo .deps/objcopy.Po
mv -f .deps/wrstabs.Tpo .deps/wrstabs.Po
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no elf_i386 “i386-unknown-linux-gnu”
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT addr2line.o -MD -MP -MF .deps/addr2line.Tpo -c -o addr2line.o ../../binutils-2.21/binutils/addr2line.c
mv -f .deps/addr2line.Tpo .deps/addr2line.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT readelf.o -MD -MP -MF .deps/readelf.Tpo -c -o readelf.o ../../binutils-2.21/binutils/readelf.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT unwind-ia64.o -MD -MP -MF .deps/unwind-ia64.Tpo -c -o unwind-ia64.o ../../binutils-2.21/binutils/unwind-ia64.c
mv -f .deps/unwind-ia64.Tpo .deps/unwind-ia64.Po
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no i386linux “i386-unknown-linux-gnuaout”
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT elfedit.o -MD -MP -MF .deps/elfedit.Tpo -c -o elfedit.o ../../binutils-2.21/binutils/elfedit.c
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no elf_l1om “x86_64-unknown-linux-gnu”
mv -f .deps/elfedit.Tpo .deps/elfedit.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT nm.o -MD -MP -MF .deps/nm.Tpo -c -o nm.o ../../binutils-2.21/binutils/nm.c
mv -f .deps/nm.Tpo .deps/nm.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT is-strip.o -MD -MP -MF .deps/is-strip.Tpo -c -o is-strip.o ../../binutils-2.21/binutils/is-strip.c
mv -f .deps/is-strip.Tpo .deps/is-strip.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT cxxfilt.o -MD -MP -MF .deps/cxxfilt.Tpo -c -o cxxfilt.o ../../binutils-2.21/binutils/cxxfilt.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT eelf_x86_64.o -MD -MP -MF .deps/eelf_x86_64.Tpo -c -o eelf_x86_64.o eelf_x86_64.c
mv -f .deps/cxxfilt.Tpo .deps/cxxfilt.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT eelf_i386.o -MD -MP -MF .deps/eelf_i386.Tpo -c -o eelf_i386.o eelf_i386.c
mv -f .deps/eelf_i386.Tpo .deps/eelf_i386.Po
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o size size.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
mv -f .deps/eelf_x86_64.Tpo .deps/eelf_x86_64.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT ei386linux.o -MD -MP -MF .deps/ei386linux.Tpo -c -o ei386linux.o ei386linux.c
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
mv -f .deps/ei386linux.Tpo .deps/ei386linux.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT eelf_l1om.o -MD -MP -MF .deps/eelf_l1om.Tpo -c -o eelf_l1om.o eelf_l1om.c
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o objdump objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objdump objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o  ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a   -lz
mv -f .deps/eelf_l1om.Tpo .deps/eelf_l1om.Po
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o eelf_x86_64.o eelf_i386.o ei386linux.o eelf_l1om.o  ../bfd/libbfd.la ../libiberty/libiberty.a  -lz -ldl
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o eelf_x86_64.o eelf_i386.o ei386linux.o eelf_l1om.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz -ldl
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o strings strings.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strings strings.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/ld’
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/ld’
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld’
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o ranlib ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a   -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o objcopy objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ranlib ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objcopy objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o addr2line addr2line.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o addr2line addr2line.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o elfedit elfedit.o version.o  ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o nm-new nm.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o elfedit elfedit.o version.o  ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o nm-new nm.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o cxxfilt cxxfilt.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o cxxfilt cxxfilt.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
mv -f .deps/readelf.Tpo .deps/readelf.Po
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o readelf readelf.o version.o unwind-ia64.o dwarf.o  ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o readelf readelf.o version.o unwind-ia64.o dwarf.o  ../libiberty/libiberty.a -lz
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils’
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils’
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils’
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build’

编译binutils-2.21出错

Filed under: 操作系统 ; Tags: — freeyun @ 2011-05-27 00:26:06

Configuring in ./binutils

configure: loading cache ./config.cacheconfigure: error: `YACC’ has changed since the previous run:

configure:   former value:  `/home/heary/lfs/binutils-2.21/missing bison -y’

configure:   current value: `bison -y’

configure: error: in `/home/heary/lfs/binutils-2.21/binutils’:

configure: error: changes in the environment can compromise the build

configure: error: run `make distclean’ and/or `rm ./config.cache’ and start overmake[1]: *** [configure-binutils] Error 1make[1]: Leaving directory `/home/heary/lfs/binutils-2.21′make: *** [all] Error 2

只有记录报错信息

ubuntu grub boot freebsd 8.2

Filed under: 操作系统 ; Tags: , , — freeyun @ 2011-05-08 16:37:02

heary@heary-Inspiron-1464:~$ sudo -i
[sudo] password for heary:
root@heary-Inspiron-1464:~# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0×90909090

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2805 22528768+ a5 FreeBSD
Partition 1 does not end on cylinder boundary.
/dev/sda2 2805 9587 54476800 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 9587 38914 235564033 f W95 Ext’d (LBA)
Partition 3 does not end on cylinder boundary.
/dev/sda5 9587 16369 54476800 7 HPFS/NTFS
/dev/sda6 16370 23152 54476800 7 HPFS/NTFS
/dev/sda7 23152 31183 64512000 7 HPFS/NTFS
/dev/sda8 31183 35008 30720000 7 HPFS/NTFS
/dev/sda9 35008 35254 1977344 82 Linux swap / Solaris
/dev/sda10 35254 36481 9858048 83 Linux
/dev/sda11 36482 36494 96256 83 Linux
(more…)

ubuntu 11.04修复gnome3 更改最大最小化

Filed under: 应用软件 ; Tags: — freeyun @ 2011-05-06 23:51:38

gconf-editor

更改:close
:minimize,maximize,close
最后ALT+F2,输入r
参考:

http://www.ubuntugeek.com/how-to-fix-common-gnome-3-issues-on-ubuntu-11-04-natty.html

标题转英文的

Filed under: 网站设计 ; Tags: — freeyun @ 2011-04-18 00:40:07

现完成了标题转英文的链接,所以如果有那位朋友链接到我网站,可能就访问不到了,很抱歉。以后都用这种固定链接的方法
参考
标题更新:http://www.storyday.com/html/y2008/1403_cos_slug_translator-updated-again.html

批量更新:http://www.storyday.com/html/y2007/1219_slug-batch-conversion-plug-in-for-english.html
wordpress中文转英文两个插件较好用

ubuntu 编译 codelblocks

Filed under: 应用软件 ; Tags: , — freeyun @ 2011-04-05 21:36:51

ubuntu 编译 codelblocks从svn有全插件

 sudo apt-get install build-essential

sudo apt-get install gdb

sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev

sudo update-alternatives –config wx-config
wx2.8-headers wx-common

cd trunk

./bootstrap

 

 ./configure --prefix=/opt/codeblocks-svn

or similar. Then you can later install a different build like:

 ./configure --prefix=/opt/codeblocks2-svn

followed by ‘make && make install’ as usual.

By default, CodeBlocks will not compile the contributed plugins from SVN. If you want to compile / install them too, replace the above ./configure command with:

 ./configure --with-contrib-plugins=all

Screenshot

参考:http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux

Dell Wireless WLAN 1397—freebsd

Filed under: 操作系统 ; Tags: — freeyun @ 2011-04-04 20:54:07

Dell Wireless WLAN 1397(4321bg)就不要找FreeBsd驱动了

关于官方说明:

4.6.3. Is there a native driver for the Broadcom 43xx cards?

No, and there is not likely to be.

Broadcom refuses to publically release programming information for their wireless chipsets, most likely because they use software controlled radios. In order to get FCC type acceptance for their parts, they have to ensure that users cannot arbitrarily set things like operating frequencies, modulation parameters and power output. But without knowing how to program the chipsets, it is nearly impossible to write a driver.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/compatibility-networking.html#SUPPORT-BROADCOM

gcc 4.60编译

Filed under: 应用软件 ; Tags: , — freeyun @ 2011-04-01 22:30:34

gcc 4.60编译

前提:gmp软件包,mpfr软件包,mpc软件包

./configure –prefix=/usr/gcc-4.6.0 –enable-languages=all –with-gmp=/usr/local/gmp –with-mpfr=/usr/local/mpfr –enable-libgomp

make

make install

 

报错缺少库的,请注意努力折腾

删除的就删除安装的目录,自动删除命令是没有

可以参考:http://gcc.gnu.org/install/