Linux 系统没加swap分区的原因。 yelei@ubuntu:~$ sudo dd if=/dev/zero of=/opt/moreswap bs=1024 count=512k [sudo] password for yelei: 524288+0 records in 524288+0 records out 536870912 bytes (537 MB) copied,14.3514 秒,37.4 MB/秒 yelei@ubuntu:~$ sudo mkswap /opt/moreswap mkswap: /opt/moreswap: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 524284 KiB no label, UUID=8ba91cd0-be0f-4e83-ae2a-30b04bf41f75 yelei@ubuntu:~$ sudo swapon /opt/moreswap yelei@ubuntu:~$ sudo gedit /etc/fstab /opt/moreswap none swap sw 0 0
ld terminated with signal 9Been trying to build substantial amout of code on linux vmware image. Three times the build has failed with “ld terminated with signal 9″. A simple google revlealed that I might have run out of swap space!So I run sudo swaon -s and get nothing atall!Then a google for “turning on swap space” got me to do the following:# sudo dd if=/dev/zero of=/moreswap bs=1M count=512 That creates a 512 MB file named moreswap filled with zeros. # sudo mkswap /moreswap # sudo swapon /moreswapAppended the following line to /etc/fstab to make this change permanent. /moreswap none swap sw 0 0Worked like a charm!
错误就在这了 make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] 错误 1
信号量9这个错误造成的原因很多,光看这两句看不出来..你可以去google一下signal 9这个错误
yelei@ubuntu:~$ sudo dd if=/dev/zero of=/opt/moreswap bs=1024 count=512k
[sudo] password for yelei:
524288+0 records in
524288+0 records out
536870912 bytes (537 MB) copied,14.3514 秒,37.4 MB/秒
yelei@ubuntu:~$ sudo mkswap /opt/moreswap
mkswap: /opt/moreswap: warning: don't erase bootbits sectors
on whole disk. Use -f to force.
Setting up swapspace version 1, size = 524284 KiB
no label, UUID=8ba91cd0-be0f-4e83-ae2a-30b04bf41f75
yelei@ubuntu:~$ sudo swapon /opt/moreswap
yelei@ubuntu:~$ sudo gedit /etc/fstab
/opt/moreswap none swap sw 0 0
That creates a 512 MB file named moreswap filled with zeros.
# sudo mkswap /moreswap
# sudo swapon /moreswapAppended the following line to /etc/fstab to make this change permanent.
/moreswap none swap sw 0 0Worked like a charm!