premgopalan / hgaprec

Scalable Recommendation with Hierarchical Poisson Factorization P Gopalan, JM Hofman, DM Blei UAI, 326-335
GNU General Public License v3.0
55 stars 28 forks source link

Installing on Mac OS X #9

Open slinnarsson opened 7 years ago

slinnarsson commented 7 years ago

How do you install hgaprec on Mac OS X?

(I'm opening this as a separate issue in case it helps somebody. Answer below.)

slinnarsson commented 7 years ago

Here's how I built and installed hgaprec on Mac OS X Sierra:

  1. Install Homebrew if you haven't already.

  2. Install dependencies:

brew install gsl
brew install arpack
  1. Configure, and tell make not to worry about dependencies:
./configure --disable-dependency-tracking
  1. Make and install:
make
make install
BadrinathS commented 2 years ago

I am facing the below error when I follow the readme file

g++  -O3  -L/opt/local/lib -o hgaprec ratings.o main.o log.o hgaprec.o -larpack -llapack -lblas -lgsl -lpthread -lgslcblas 
ld: library not found for -larpack
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Even if I install arpack and gsl.

Can anyone suggest how to fix this?