meltwater / served

A C++11 RESTful web server library
MIT License
710 stars 174 forks source link

Curl (7) Failed to connect #17

Closed leoul16 closed 6 years ago

leoul16 commented 8 years ago

I am trying to get the hang of served so I downloaded the sample hello world from here https://github.com/datasift/served/tree/master/src/examples/hello_world . I built using the CMakeLists.txt and every curl attempt I make is giving me a curl (7) error. I am running this on OS X El Capitan. Any ideas on how to fix this? screen shot 2016-08-02 at 11 57 53 am screen shot 2016-08-02 at 11 57 36 am

Jeffail commented 8 years ago

Hey @leoul16, what command are you using the run the example binary? It doesn't show up in the output you posted.

leoul16 commented 8 years ago

I thought the MakeFile would make and deploy the binary. What command should I be using?

cjgdev commented 8 years ago

@leoul16 Here's what I did from a fresh git clone:

$ brew install re2
$ mkdir build && cd build
$ cmake ../
$ make build && make test
$ ../bin/eg_hello_world
$ curl http://localhost:8123/hello

Can you do a fresh clone and try the same steps please?

cjgdev commented 8 years ago

@Jeffail I'm pretty sure this is just user error.