On Wed, Apr 26, 2017 at 11:47 AM, Shane Curcuru <[email protected]> wrote:
> Before I start on any larger projects, I'm working through figuring out
> all the DEVELOPMENT/MACOSX instructions, and have a couple of issues.
>
> * Can't run rake:
>
> Macbook:calendar-demo curcuru$ rake server --trace
> rake aborted!
> LoadError: cannot load such file -- rspec/core/rake_task
> /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
> `require'
> /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
> `require'
> /Users/curcuru/src/g/whimsy/www/calendar-demo/Rakefile:1:in `<top
> (required)>'
> ...etc.
>
> Macbook:calendar-demo curcuru$ gem which rspec
> ERROR:  Can't find ruby library file or shared library rspec

By any chance are you trying to run the board agenda tool?  If so,
click on the link at the bottom of the MACOSX page for the additional
steps you need to run for this tool.  In particular, what you need to
address this problem is to run:

  bundle install

> * Can't get to httpd:
>
> Macbook:whimsy curcuru$ sudo launchctl load -w
> /System/Library/LaunchDaemons/org.apache.httpd.plist
> Password:
> /System/Library/LaunchDaemons/org.apache.httpd.plist: service already loaded
> Macbook:whimsy curcuru$ curl localhost
> curl: (7) Failed to connect to localhost port 80: Connection refused
> Macbook:whimsy curcuru$ curl localhost:8080
> curl: (7) Failed to connect to localhost port 8080: Connection refused
> Macbook:whimsy curcuru$ curl 127.0.0.1
> curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
>
> Macbook:whimsy curcuru$ atom /etc/apache2/httpd.conf
> Macbook:whimsy curcuru$ atom /etc/hosts
> (Triple checked the setup is done as in MACOSX.md, which made sense)
>
> Macbook:whimsy curcuru$ sudo apachectl restart
> Password:
> Macbook:whimsy curcuru$ curl 127.0.0.1:80
> curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
> Macbook:whimsy curcuru$ curl whimsy.local
> curl: (7) Failed to connect to whimsy.local port 80: Connection refused
>
> Are there firewall, networking, or other settings I need to change?
>
> OSX 10.11.6, Firewall is on, but "Block all incoming connections" is not
> checked.  My default /private/var/log/apache2/ directory is empty.

On the three macs I have this set up on, I didn't have any firewall
problems.  Firewalls don't typically block localhost access.

Try running httpd from the command line:

sudo /usr/sbin/apachectl stop
sudo /usr/sbin/httpd

Once you get it working, hit control-c to stop it, and restart it in
the background for this session:

sudo /usr/sbin/apachectl start

launchd will take of things for future sessions.

> - Shane

- Sam Ruby

Reply via email to