GithubHelp home page GithubHelp logo

cmake version > 3.0 ? about xlearn HOT 11 CLOSED

aksnzhy avatar aksnzhy commented on August 15, 2024
cmake version > 3.0 ?

from xlearn.

Comments (11)

aksnzhy avatar aksnzhy commented on August 15, 2024

@xxyy1 Hi, you can follow this page to update your CMake. http://xlearn-doc.readthedocs.io/en/latest/install_cmake.html

from xlearn.

xxyy1 avatar xxyy1 commented on August 15, 2024

install cmake
Loaded plugins: changelog, priorities
942 packages excluded due to repository priority protections
Package cmake-2.8.12.2-2.el7.x86_64 already installed and latest version
Nothing to do

when i install xlearn from pip
why tips "Exception: Please install CMake first" ?

from xlearn.

aksnzhy avatar aksnzhy commented on August 15, 2024

Because xLearn requires CMake version > 3.0, so you get this exception.

We changed our CMake minimal requirement to 2.8. Now you can try to build it from source code.

from xlearn.

xxyy1 avatar xxyy1 commented on August 15, 2024

build from source code
new error

/bin/ld: cannot find -lpthread
/bin/ld: cannot find -lpthread
/bin/ld: cannot find -lstdc++
/bin/ld: cannot find -lm
/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [test/base/file_util_test] Error 1
make[1]: *** [src/base/CMakeFiles/file_util_test.dir/all] Error 2
make: *** [all] Error 2
/bin/python2
Traceback (most recent call last):
File "setup.py", line 15, in
LIB_PATH = [os.path.relpath(libfile, CURRENT_DIR) for libfile in libpath'find_lib_path']
File "xlearn/libpath.py", line 45, in find_lib_path
'Cannot find xlearn Library in the candidate path'
builtin.XLearnLibraryNotFound: Cannot find xlearn Library in the candidate path

from xlearn.

aksnzhy avatar aksnzhy commented on August 15, 2024

Why your compiler does not support the standard library? Can you find these libraries like pthread on your machine?

from xlearn.

xxyy1 avatar xxyy1 commented on August 15, 2024

sorry,
This is the first time to meet this problem.
What path to look for, what to find?
How to solve this problem?

from xlearn.

aksnzhy avatar aksnzhy commented on August 15, 2024

Don't worry, can you tell me what OS on your computer? OSX or Linux ?

from xlearn.

xxyy1 avatar xxyy1 commented on August 15, 2024

CentOS Linux release 7.4.1708 (Core)

from xlearn.

xxyy1 avatar xxyy1 commented on August 15, 2024

Thank you very much for your patience guidance.

from xlearn.

aksnzhy avatar aksnzhy commented on August 15, 2024

It seems that your OS missing some necessary libraries.

Please try the following command:

sudo yum install glibc-static libstdc++-static -y

and then try to build xLearn again. If there still exists problems, please share me the error information.

from xlearn.

xxyy1 avatar xxyy1 commented on August 15, 2024

it works! thank you very much~~

from xlearn.

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.