Datactuariat / Rpostal

R bindings to libpostal for fast international address parsing/normalization
10 stars 1 forks source link

Little help with installation please! #1

Open lukeholman opened 8 years ago

lukeholman commented 8 years ago

Hi there,

Thanks for this very helpful-sounding project, and sorry for the rookie questions. I can't install the package due to my unfamiliarity with Mac OS Terminal. On the line of code:

./configure --datadir=[...some dir with a few GB of space...]

I'm not sure how to specify the directory. I've tried every combination of filepaths, quotes, etc without success. For example, if I put a folder called HERE in the root directory, you'd think one of these might work, but no!

./configure --datadir=/HERE

./configure --datadir="/HERE"

./configure --datadir=`/HERE`

./configure --datadir='Users/luke/HERE`

Little help? Also, when one types

sudo brew install snappy autoconf automake libtool pkg-config

into Terminal there is a very threatening warning message about why you shouldn't run Homebrew as root. I removed the sudo command (which I think is that part that makes it run as root?), and it installs fine - but maybe leads to the later error? Finally, you could add a line of code to the Readme for people that didn't yet have Homebrew installed, which is:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Sorry to be a pain! I can do R and not much else, which is why your Repo sounds great.

All the best

lukeholman commented 8 years ago

Hi, so I fixed it myself. One can (And probably should) just type:

./configure

instead of:

./configure --datadir=[...some dir with a few GB of space...]

When cd'd into the libpostal directory (the default of the R package assumes you did it this way so it's convenient).

Datactuariat commented 8 years ago

Thank's @lukeholman , the Readme has been updated !