Qt4.7.1编译pc版本的时候:collect2:ld terminated with signal 9(或11)
来源:互联网 发布:天刀女性捏脸数据库 编辑:程序博客网 时间:2024/05/21 02:52
转载:http://hi.baidu.com/seaeechou/blog/item/cbc860210fd9bf489822edd3.html
当时内存几乎用完了,发生这个错误是因为内存不够,编译不过来。系统是ubuntu 11.04, 2G的物理内存不够,swap分区是1G。
CXXLD libwebkitgtk-1.0.la
collect2: ld terminated with signal 9 [Killed]
make[1]: *** [libwebkitgtk-1.0.la] Error 1
make[1]: Leaving directory `/home/cselken/Downloads/webkit/WebKitBuild/Debug'
make: *** [all] Error 2
Failed to build WebKit using 'make'!
解决方法是增大交换分区的大小。
https://help.ubuntu.com/community/SwapFaq#How%20do%20I%20add%20more%20swap?
Four-step Process to Add Swap File
1 Creating a file the size you want.
2 Formatting that file to create a swapping device.
3 Adding the swap to the running system.
4 Making the change permanent.
For Adding a 512 MB swap examp
1 Creating a file for 512 MB size you want:
We will create a /mnt/512Mb.swap swap file and set the permissions so that users cannot read it directly.
sudo fallocate -l 512m /mnt/512Mb.swap sudo chmod 600 /mnt/512Mb.swapfallocate length suffixes are: k, m, g, t, p, e (See man fallocate).
By default your swap file may be created world readable. We set the 600 mode permissions in order to prevent users from being able to read potentially sensitive information from the swap file.
2 Formatting that file to create a swapping device:
sudo mkswap /mnt/512Mb.swap
3 Adding the swap to the running system:
sudo swapon /mnt/512Mb.swap
The additional swap is now available and can be seen by "cat /proc/meminfo"
4 Making the change permanent:
Edit the /etc/fstab:
gksudo gedit /etc/fstabAdd this line at the end of the file:
/mnt/512Mb.swap none swap sw 0 0Save. After the next reboot the swap will be used automatically.
Example of making a swap file
This is an example of making and using a swap file on a computer with no swap partition.
user@computer:~$ sudo fallocate -l 512m /mnt/512Mb.swapPassword:
user@computer:~$ sudo mkswap /mnt/512Mb.swap
Setting up swapspace version 1, size = 536866 kB no label, UUID=dd6a01c8-93f0-41e0-9b7a-306956d8821b
user@computer:~$ sudo swapon /mnt/512Mb.swap
user@computer:~$ cat /proc/meminfo
MemTotal: 499496 kB
MemFree: 9156 kB
Buffers: 4748 kB
Cached: 233140 kB
SwapCached: 724 kB
Active: 254432 kB
Inactive: 157920 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 499496 kB
LowFree: 9156 kB
SwapTotal: 524280 kB
SwapFree: 523556 kB
Dirty: 128 kB
Writeback: 0 kB
Mapped: 243420 kB
Slab: 20672 kB
CommitLimit: 774028 kB
Committed_AS: 648680 kB
PageTables: 2224 kB
VmallocTotal: 524280 kB
VmallocUsed: 5708 kB
VmallocChunk: 518176 kB
user@computer:~$ gksudo gedit /etc/fstab
user@computer:~$ free
total used free shared buffers cached
Mem: 499496 479488 20008 0 8256 215892
-/+ buffers/cache: 255340 244156
Swap: 524280 3856 520424 #####Then, after running a few more programs...
user@computer:~$ free
total used free shared buffers cached
Mem: 499496 492768 6728 0 1240 142336
-/+ buffers/cache: 349192 150304
Swap: 524280 53384 470896 #####Next, reboot to make sure it will work consistently.
user@computer:~$ free
total used free shared buffers cached
Mem: 499496 493136 6360 0 7528 174700 -/+ buffers/cache: 310908 188588 Swap: 524280 17148 507132
- Qt4.7.1编译pc版本的时候:collect2:ld terminated with signal 9(或11)
- Qt3.6.3编译pc版本的时候:collect2:ld terminated with signal 11
- Android 源码编译时collect2: ld terminated with signal 9 [Killed] 错误的处理
- collect2: ld terminated with signal 9 错误解决办法
- collect2: ld terminated with signal 9 错误解决办法
- collect2:ld terminated with signal 11 [Segmentation ault],core dumped.
- collect2: ld terminated with signal 11 [段错误]
- Android编译错误:collect2: ld terminated with signal 9 错误解决办法
- linux下编译出错 collect2: ld terminated with signal 7 [Bus error], core dumped
- linux下编译出错 collect2: ld terminated with signal 7 [Bus error], core dumped
- linux下编译出错 collect2: ld terminated with signal 7 [Bus error], core dumped
- collect2: ld terminated with signal 9
- 在CXXLD libwebkitgtk-1.0.la时候发生 ld terminated with signal 9 [Killed]错误
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- 检查点类型
- 简说敏捷团队各角色
- 性能测试及系统优化类型的用户故事
- HDU1728逃离迷宫(BFS)
- 有害的“这样效率最高”思维
- Qt4.7.1编译pc版本的时候:collect2:ld terminated with signal 9(或11)
- JavaScript、Java与JSON互转
- Direct2D 简介
- 第二节 CSS学习——基础语法
- UVA 350 (13.07.26)
- Linux 下SElinux以及防火墙的关闭
- Spark随谈(一)—— 总体架构
- 图片热点链接
- 加载web项目时报的错误:Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modul