Giter Site home page Giter Site logo

Comments (10)

mdcallag avatar mdcallag commented on September 26, 2024

This bug report is seriously lacking in detail.

from webscalesql-5.6.

vcdog avatar vcdog commented on September 26, 2024

cmake -DCMAKE_INSTALL_PREFIX=/data/webscalesoft -DMYSQL_UNIX_ADDR=/data/webscalesoft/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/data/webscaledb -DMYSQL_TCP_PORT=3308 -DENABLE_DOWNLOADS=1
-- Running cmake version 2.8.10.2
-- MySQL 5.6.17
-- Packaging as: mysql-5.6.17-Linux-x86_64
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- Using cmake version 2.8.10.2
-- Not building NDB
-- Library mysqlclient depends on OSLIBS -lpthread;m;rt;dl
-- GMOCK_SOURCE_DIR:/data/dba_tools/webscalesql-5.6-webscalesql-5.6.17/source_downloads/gmock-1.6.0
-- Performing Test HAVE_NO_NULL
-- Performing Test HAVE_NO_NULL - Failed
-- Performing Test HAVE_NO_UNUSED_TYPEDEFS
-- Performing Test HAVE_NO_UNUSED_TYPEDEFS - Failed
-- GTEST_LIBRARIES:gmock;gtest
-- Library mysqlserver depends on OSLIBS -lpthread;m;rt;crypt;dl;aio
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

ENABLE_DOWNLOADS

from webscalesql-5.6.

vcdog avatar vcdog commented on September 26, 2024

Following the installation environment:
CentOS release 6.4 (Final) core version:2.6.32-358.el6.x86_64
cmake version 2.8.7
bison version 2.5
m4-1.4.16
webscalesql-5.6-webscalesql-5.6.17
gcc-4.4.7-3.el6.x86_64
readline-6.0-4.el6.x86_64
readline-devel-6.0-3.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64

from webscalesql-5.6.

vcdog avatar vcdog commented on September 26, 2024

Q: Is building WebScaleSQL just like building MySQL?
 We have made a few changes so far, that you may need to know.
 Building WebScaleSQL requires at least GCC version 4.7, or an equivalent CLang version.
 To make a WebScaleSQL debug build, use only -DCMAKE_BUILD_TYPE=Debug not -DWITH_DEBUG.
 WebScaleSQL requires readline-dev or libreadline-dev (depending on the Linux distribution) to build.
 WebScaleSQL does not currently maintain compatibility for anything except GNU/Linux x86_64.
 If you make code changes, be aware that we build as C++11 and C99.

from webscalesql-5.6.

mdcallag avatar mdcallag commented on September 26, 2024

much better

from webscalesql-5.6.

vcdog avatar vcdog commented on September 26, 2024

Is it because my gcc version is too low??

from webscalesql-5.6.

mdcallag avatar mdcallag commented on September 26, 2024

Probably. I don't hack on it anymore but there was desire to use features only available in the latest C++ standard and latest g++ versions. This would be a good thing to explain in the FAQ.

from webscalesql-5.6.

pivanof avatar pivanof commented on September 26, 2024

As you correctly cited the FAQ item, you need to have gcc 4.7 or higher to build WebScaleSQL. gcc 4.4 won't work.

from webscalesql-5.6.

vcdog avatar vcdog commented on September 26, 2024

My problem has been resolved,ths a lot.operation Follows

$ cd /etc/yum.repos.d/
$ wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
$ yum repolist
$ yum install devtoolset-1.1
$ scl enable devtoolset-1.1 bash
$ rm CMakeCache.txt
$ cmake -DCMAKE_INSTALL_PREFIX=/data/webscalesoft
-DMYSQL_UNIX_ADDR=/data/webscalesoft/mysql.sock
-DDEFAULT_CHARSET=utf8
-DDEFAULT_COLLATION=utf8_general_ci
-DEXTRA_CHARSETS=all
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_MYISAM_STORAGE_ENGINE=1
-DWITH_ARCHIVE_STORAGE_ENGINE=1
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DMYSQL_DATADIR=/data/webscaledb
-DMYSQL_TCP_PORT=3308
-DENABLE_DOWNLOADS=1
$make && make install

I hope it help to others.Thanks.

from webscalesql-5.6.

royzhao avatar royzhao commented on September 26, 2024

I also have some question,but I update my gcc to 4.8,it‘s has error that

‘cc1plus: error: unrecognized command line option "-std=c++11"’

finally,I found the environment path is wrong,I used the gcc4.4 version`s cc1plus,then , I delete the old cc1plus,I wish system auto use new version,however,system told me cc1puls not found!!
then,I used cmd

"yum remove gcc"

then complie pass!
I hope it help to others too .Thanks

from webscalesql-5.6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.