650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8E/20/wKioL1i2fdbRTjc-AAA7VbIb0Ec269.png "title=" C + +. PNG "alt=" Wkiol1i2fdbrtjc-aaa7vbib0ec269.png "/>
compiling MySQL when the error is half-time, C + + die because the memory is too small to create a swap partition or to increase memory recompilation.
Set 2G Swap partition to use the next :
# dd If=/dev/zeroof=/swapfile bs=1k count=2048000-- gets the added 2G of the SWAP File Block
# mkswap/swapfile-- Create SWAP file
# swapon/swapfile-- Activate SWAP file
# swapon-s-- View SWAP information is correct
# echo "/var/swapfile swap swap defaults 0 0" >>/etc/fstab-- Add to Fstab file to start automatically when the system boots
Note , Swapfile the path to the file is /var/ under
when you are finished compiling , If you don't want to swap partitions, , can delete :
This article is from the "11027868" blog, please be sure to keep this source http://11037868.blog.51cto.com/11027868/1902355
Compile MySQL, half of the time error, C + + dead