tag:blogger.com,1999:blog-3211409948956809184.post2146052421736895938..comments2024-03-21T04:14:27.443-07:00Comments on Large Scale Machine Learning and Other Animals: The GraphLab large scale machine learning framework - installation on MAC OSX 10.6Danny Bicksonhttp://www.blogger.com/profile/01517237836051035400noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-3211409948956809184.post-15798150310117646892012-05-22T11:26:59.212-07:002012-05-22T11:26:59.212-07:00Hi,
Can you please send me (via graphlab user mai...Hi, <br />Can you please send me (via graphlab user mailing list) the full configure output, make output, and also gcc --version, g++ --version, cmake --version. Did you try to install version 2 or version 1? In version 2 the --boostrap option is not required to setup.Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-70415366535805560292012-05-22T10:53:06.289-07:002012-05-22T10:53:06.289-07:00The --bootstrap option didn't work for me (ind...The --bootstrap option didn't work for me (indicated boost lib was missing), but it built and tested fine without the option. I'm pretty sure my BOOST_ROOT is set correctly, and I tried with boost_1_48_0 and boost_1_46_1.Jeff Yuneshttps://www.blogger.com/profile/04702443993836150457noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-71828260303461772012012-03-22T22:26:57.705-07:002012-03-22T22:26:57.705-07:00Hi Danny,
Could you help me with this compilation...Hi Danny,<br /><br />Could you help me with this compilation error? I am working on OSX 10.6.6 and I followed Andy's instructions. I had a problem with the itpp compilation initially that I was able to solve since in OSX the GNU libtool is actually called glibtool. Until that point, ok, but then, in the last step that Andy mentioned: <br /><br />cd debug<br />make -j 4<br /><br />I had this error<br /><br /><br />[ 76%] Building CXX object tests/CMakeFiles/graph_test.cxxtest.dir/graph_test.cxx.o<br />[ 77%] Building CXX object tests/CMakeFiles/graphlab_test.cxxtest.dir/graphlab_test.cxx.o<br />Linking CXX executable anytests_loader<br />ld: library not found for -ltcmalloc<br />collect2: ld returned 1 exit status<br />make[2]: *** [tests/anytests_loader] Error 1<br />make[1]: *** [tests/CMakeFiles/anytests_loader.dir/all] Error 2<br />make[1]: *** Waiting for unfinished jobs....<br />Linking CXX executable anytests<br />ld: library not found for -ltcmalloc<br />collect2: ld returned 1 exit status<br />make[2]: *** [tests/anytests] Error 1<br />make[1]: *** [tests/CMakeFiles/anytests.dir/all] Error 2<br />Linking CXX executable graph_test.cxxtest<br />ld: library not found for -ltcmalloc<br />collect2: ld returned 1 exit status<br />make[2]: *** [tests/graph_test.cxxtest] Error 1<br />make[1]: *** [tests/CMakeFiles/graph_test.cxxtest.dir/all] Error 2<br />Linking CXX executable graphlab_test.cxxtest<br />ld: library not found for -ltcmalloc<br />collect2: ld returned 1 exit status<br />make[2]: *** [tests/graphlab_test.cxxtest] Error 1<br />make[1]: *** [tests/CMakeFiles/graphlab_test.cxxtest.dir/all] Error 2<br />make: *** [all] Error 2<br /><br />Thanks,<br /><br />DenisDenis Parrahttps://www.blogger.com/profile/12128725067167092076noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-89942073971573265732011-10-27T17:17:42.827-07:002011-10-27T17:17:42.827-07:00It compiles now, thank you!It compiles now, thank you!Niharhttps://www.blogger.com/profile/02682491828202494366noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-67077116344856230012011-10-27T03:40:33.198-07:002011-10-27T03:40:33.198-07:00Sorry about that. Please try again!Sorry about that. Please try again!Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-90022377478108658582011-10-27T02:03:56.203-07:002011-10-27T02:03:56.203-07:00Hi Danny,
Thanks for the response. I managed to f...Hi Danny,<br /><br />Thanks for the response. I managed to fix that error earlier by using the --enable-debug option when running ./configure for itpp. But now, I am getting a different compiler error that I am not able to figure out:<br /><br /><br />Scanning dependencies of target itdiff<br />[ 86%] Building CXX object demoapps/pmf/CMakeFiles/itdiff.dir/itdiff.o<br />Linking CXX executable randomtest.cxxtest<br />In file included from /home/nihar/graphlabapi/demoapps/pmf/itdiff.cpp:23:0:<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp: In function ‘itpp::ivec randi(int, int, int)’:<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp:850:23: error: ‘graphlab::random’ has not been declared<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp:850:39: error: expected primary-expression before ‘int’<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp:850:39: error: expected ‘;’ before ‘int’<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp: In function ‘int randi(int, int)’:<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp:854:20: error: ‘graphlab::random’ has not been declared<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp:854:36: error: expected primary-expression before ‘int’<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp:854:36: error: expected ‘;’ before ‘int’<br />/home/nihar/graphlabapi/demoapps/pmf/mathlayer.hpp:854:39: error: expected unqualified-id before ‘>’ token<br />Linking CXX static library libpgibbs_pic.a<br />[ 86%] Built target randomtest.cxxtest<br />Scanning dependencies of target pmf<br />[ 87%] Building CXX object demoapps/pmf/CMakeFiles/pmf.dir/pmf.o<br />[ 87%] Built target pgibbs_pic<br />[ 87%] Building CXX object demoapps/pgibbs/CMakeFiles/pgibbs.dir/util.o<br />Scanning dependencies of target demo<br />[ 88%] Building CXX object demoapps/demo/CMakeFiles/demo.dir/demo.o<br />make[2]: *** [demoapps/pmf/CMakeFiles/itdiff.dir/itdiff.o] Error 1<br />make[1]: *** [demoapps/pmf/CMakeFiles/itdiff.dir/all] Error 2<br />make[1]: *** Waiting for unfinished jobs....<br /><br />------------------------------------<br /><br />Please let me know what this is about whenever you get the chance. I have faced this error both when compiling on Ubuntu 64-bit Oneiric and OS X Lion 64-bit.Niharhttps://www.blogger.com/profile/02682491828202494366noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-55021375130683104332011-10-26T21:48:40.114-07:002011-10-26T21:48:40.114-07:00Sorry about that - please take again from mercuria...Sorry about that - please take again from mercurial. Problem should be fixed.Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-46970503996296713932011-10-26T17:34:55.100-07:002011-10-26T17:34:55.100-07:00Hi Danny,
My compilation on OS X fails with the f...Hi Danny,<br /><br />My compilation on OS X fails with the following error:<br /><br /><br />Scanning dependencies of target anytests_loader<br />[ 80%] Building CXX object tests/CMakeFiles/anytests_loader.dir/anytests_loader.o<br />Linking CXX executable anytests<br />ld: library not found for -litpp_debug<br />collect2: ld returned 1 exit status<br />make[2]: *** [tests/anytests] Error 1<br />make[1]: *** [tests/CMakeFiles/anytests.dir/all] Error 2<br />make[1]: *** Waiting for unfinished jobs....<br /><br />---------------------------------------------<br /><br />I am using Andy's instructions posted above. <br />Platform: OS X Lion (64-bit)Niharhttps://www.blogger.com/profile/02682491828202494366noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-48238301928440406102011-08-11T10:46:17.756-07:002011-08-11T10:46:17.756-07:00Thanks Andy!!
I would also suggest joining our goo...Thanks Andy!!<br />I would also suggest joining our google group:<br />http://groups.google.com/group/graphlab-kdd<br />I will post your instructions there, so other people may use it.Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-38649563806874338252011-08-11T10:20:32.424-07:002011-08-11T10:20:32.424-07:00Hey Danny, this process worked for me on OSX 10.6....Hey Danny, this process worked for me on OSX 10.6.8 (64-bit) using MacPorts:<br /><br />{{{<br /><br />## install utils and deps available from MacPorts<br />sudo port install cmake<br /># current boost port version is 1.47.0_0 which breaks graphlabapi build<br />#sudo port install boost +debug<br />sudo port install google-perftools<br />sudo port install mercurial<br /><br />## no port for gfortran; download from HPC<br />cd ~/Downloads<br />wget http://prdownloads.sourceforge.net/hpc/gfortran-snwleo-intel-bin.tar.gz?download<br />gzip -cd gfortran-snwleo-intel-bin.tar.gz | sudo tar xv -C /<br /><br />## when building itpp, we include '-framework vecLib' to pull in optimized BLAS/LAPACK libs from OSX<br />wget http://sourceforge.net/projects/itpp/files/itpp/4.2.0/itpp-4.2.tar.gz<br />gzip -cd itpp-4.2.tar.gz | tar x<br />cd itpp-4.2<br />export CPPFLAGS="-fPIC"<br />export CFLAGS="$CPPFLAGS"<br />export CXXFLAGS="$CPPFLAGS"<br />export LDFLAGS="-lblas -llapack -framework vecLib"<br />./autogen.sh<br />./configure --without-fft \<br /> && make \<br /> && sudo make install<br /><br />## fix permissions on installed itpp resources<br />sudo chmod 755 /usr/local/include/itpp<br />sudo chmod -h 755 /usr/local/lib/libitpp*<br /><br />## clone and build graphlab<br />hg clone https://code.google.com/p/graphlabapi/<br />cd graphlabapi<br />export CFLAGS="$(itpp-config --cflags)"<br />export CXXFLAGS="$CFLAGS"<br />export LDFLAGS="$(itpp-config --libs) -L/opt/local/lib"<br />./configure --bootstrap<br /># hit enter for boost dep installation<br /># hit enter for Kyoto Cabinet dep installation<br />cd debug<br />make -j 4<br /><br />}}}Andyhttps://www.blogger.com/profile/14123055136591964213noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-29517677015917156442011-06-20T05:30:07.090-07:002011-06-20T05:30:07.090-07:00Hi Dan!
We will happily look into this ASAP. Would...Hi Dan!<br />We will happily look into this ASAP. Would you mind providing us some additional details by filling out this form: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dGxEbHNYb1NNVG9SQ0lJQTNPajhGSWc6MQ<br /><br />I have also sent your question to our google user group: http://groups.google.com/group/graphlab-kdd<br />where we answer user questions.<br /><br />Best, <br /><br />DBDanny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-41996871548267516742011-06-20T05:02:44.956-07:002011-06-20T05:02:44.956-07:00I tried again with most graphlabapi_v1_1215. Boost...I tried again with most graphlabapi_v1_1215. Boost auto-installed ok, but we get stuck this time with Kyoto Cabinet - https://gist.github.com/1035498<br />(...searching around a bit, I'm not alone in hitting such problems in OSX.)Danhttps://www.blogger.com/profile/05462917724439782054noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-28783137321553576282011-06-20T02:38:54.958-07:002011-06-20T02:38:54.958-07:00Ok, it's time for me to revisit this! Do you h...Ok, it's time for me to revisit this! Do you have any new recommendations for OSX, or shall I just go back over this + mails?Danhttps://www.blogger.com/profile/05462917724439782054noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-73933036073562666982011-03-05T13:42:52.624-08:002011-03-05T13:42:52.624-08:00Cool!
I will send you ASAP instructions about how ...Cool!<br />I will send you ASAP instructions about how to compile the matrix factorization code (if I am not wrong it is not included in the framework main code - but after you setup the framework adding an application is faily easy).<br /><br />- DannyDanny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-85740555780534678732011-03-05T13:33:25.098-08:002011-03-05T13:33:25.098-08:00The ./configure script finds the version Brew inst...The ./configure script finds the version Brew installed (it gets symlinked into /usr/local/lib/libboost*). So that looks fine. I then tried to be too clever and gave a direct path to cmake instead of invoking make, but I see now that you intended just that.<br /><br />Anyhow, all seems to have built fine. <br /><br />demoapp/demo ran, <br /><br />Completed in 0.885903 seconds<br /><br />=== REPORT FOR core ===<br />[Numeric]<br />ncpus: 2<br />[Other]<br />affinities: false<br />compile_flags: -g -ggdb -O0 -Wall -Winit-self<br />engine: async<br />scheduler: fifo<br />schedyield: true<br />scope: edge<br /><br />My poor little laptop's not up to much, but maybe I can make a start here...Danhttps://www.blogger.com/profile/05462917724439782054noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-22676386860370290462011-03-05T07:22:52.147-08:002011-03-05T07:22:52.147-08:00Send me the error log, I will ask my MAC OS guys h...Send me the error log, I will ask my MAC OS guys here... :-)Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-69636044792401150482011-03-05T06:54:46.472-08:002011-03-05T06:54:46.472-08:00Said avid reader here. Boost on OSX seems to be le...Said avid reader here. Boost on OSX seems to be less than smooth - the bootstrap script failed, trying to install via HomeBrew now instead....Danhttps://www.blogger.com/profile/05462917724439782054noreply@blogger.com