From: Xin Zheng Date: Mon, 21 Jan 2008 17:43:56 +0000 (+0000) Subject: added mac os x instructions for db function creation X-Git-Tag: live~7991 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/681e96bc7db90d6d5ab369455d2a632b2d8e0023?hp=dbf4e326715e64cf7dd1d554a5a2833b6ac0b563 added mac os x instructions for db function creation --- diff --git a/db/README b/db/README index 4e705e8fb..447c63651 100644 --- a/db/README +++ b/db/README @@ -33,11 +33,11 @@ Run this command in the db/functions directory: $ make Make sure the db/functions directory is on the MySQL server's library -path and restart the MySQL server. On linux the easiest way to do this -is to create /etc/ld.so.conf.d/osm.conf and place the path to the -db/functions directory in it and then run the following command as root: +path and restart the MySQL server. -$ ldconfig +On Linux the easiest way to do this is to create /etc/ld.so.conf.d/osm.conf, and place the path to the db/functions directory in it and then run the ldconfig command as root. + +On OS X: sudo ln -s /path_to_your_osm_install/sites/rails_port/db/functions/libmyosm.so /usr/local/lib/libmyosm.so Now create the functions as follows: