概要。从512编译mysql时编译的 item_geofunc.cc.o 不是 存储器中。
我正在编译一个mysql。 计算机遵循以下规范,它一直在虚拟机中工作。
a
和记忆是
cat /proc/cpuinfo
CPU
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2435M CPU @ 2.40GHz
stepping : 7
cpu MHz : 2394.542
cache size : 3072 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm
bugs :
bogomips : 4789.08
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
安装Ubuntu 16.04并安装以添加这些软件包。
cat /proc/meminfo
MemTotal: 500252 kB
MemFree: 337428 kB
MemAvailable: 445040 kB
Buffers: 23844 kB
Cached: 80984 kB
SwapCached: 1968 kB
Active: 82352 kB
Inactive: 32276 kB
Active(anon): 4448 kB
Inactive(anon): 8460 kB
Active(file): 77904 kB
Inactive(file): 23816 kB
Unevictable: 3660 kB
Mlocked: 3660 kB
SwapTotal: 522236 kB
SwapFree: 515892 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 12212 kB
Mapped: 9192 kB
Shmem: 684 kB
Slab: 29508 kB
SReclaimable: 16428 kB
SUnreclaim: 13080 kB
KernelStack: 1856 kB
PageTables: 2292 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 772360 kB
Committed_AS: 137340 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 47040 kB
DirectMap2M: 477184 kB
从mysql站点下载文件后,
sudo apt-get install cmake
sudo apt-get install build-essential
sudo apt-get install libncurses5-dev
sudo apt-get install bison
编译期间我遇到以下选项的问题。
http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-boost-5.7.12.tar.gz
但它停在 item_geofunc.cc.o 。没错。即使经过很长时间的编译也没有。
cmake -DCMAKE_INSTALL_PREFIX=/home/server/mysql-5.7.12 -DMYSQL_DATADIR=/home/server/repository/mysql-5.7.12 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/home/download/mysql-boost/mysql-5.7.12/boost_1_59_0/boost -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DENABLED_LOCAL_INFILE=TRUE -DWITH_INNOBASE_STORAGE_ENGINE=TRUE -DINSTALL_LAYOUT=STANDALONE -DWITH_ZLIB=bundled -DWITH_SSL=bundled -DENABLED_PROFILING=ON -DMYSQL_MAINTAINER_MODE=OFF -DWITH_DEBUG=OFF -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DMYSQL_TCP_PORT=3306
答案 0 :(得分:1)
在编译512 VPS时也遇到了这个问题。我将其升级到4GB并解决了问题。