<div dir="ltr"><div>My experience installing/running ur/web on OS X is as follows:<br></div><div><br></div><div>No issues installing with Homebrew and the commands you posted.  It worked with and without the postgresql flag (I didn't try the mysql flag)<br></div><div><br></div><div>After creating a simple "hello world" app called "sample" (without a database) I was able to compile without errors using:  </div><div>     urweb simple</div><div>  </div><div>However, when running ./sample.exe I got the following error:</div><div><br></div><div>    <b>Database connection initialized.</b></div><div><b>    Failed to initialize database!  Error reopening database connection</b></div><div><b><br></b></div><div>This seemed odd since I have a working postgresql server and I wasn't using a database for this simple app.  So I created a database called "sample" and recompiled with the db and dbms flags:  </div><div><br></div><div>    urweb -db "host=localhost user=dev password=pwd dbname=sample" -dbms postgres sample</div><div><br></div><div>The above compiled without errors and I was able to start the server by running ./sample.exe.  I should also note that I did not have to include the database name in the sample.urp file. </div><div><br></div><div>In summary, it appears that you need to compile with the -db and -dbms flags even if you are not using a database.</div><div><br></div><div>Regards,</div><div>Todd</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><b> </b></div><div><b><br></b></div><div><b><br></b></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 11, 2015 at 2:56 PM, Eran Meir <span dir="ltr"><<a href="mailto:eranmeir@gmail.com" target="_blank">eranmeir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px">Hi all,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">To install Ur/Web (stable 20150819) on your mac using <a href="http://brew.sh/" target="_blank">Homebrew</a>, type the following commands in a console window:</div><div style="font-size:12.8px"><ol><li style="margin-left:15px"><font face="monospace, monospace">brew tap eranmeir/ur</font></li><li style="margin-left:15px"><font face="monospace, monospace">brew install urweb</font></li></ol><div>You can add <font face="monospace, monospace">--with-mysql</font> or <font face="monospace, monospace">--with-postgresql</font> to the installation command to get a DBMS installed (as optional dependency).</div><div><br></div><div>Please reply on this thread whether or not you were able to install successfully. If this seems to work well, it can be added to the installation instructions in the website.</div><div><br></div><div><br></div><div>Best regards,</div><div>Eran.</div></div></div>
<br>_______________________________________________<br>
Ur mailing list<br>
<a href="mailto:Ur@impredicative.com">Ur@impredicative.com</a><br>
<a href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur" rel="noreferrer" target="_blank">http://www.impredicative.com/cgi-bin/mailman/listinfo/ur</a><br>
<br></blockquote></div><br></div>