svenxie / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Unable to install Redis on Mac OS Lion #647

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
tried two versions of Redis 2.2.12 and 2.54.0-rc6 on Mac OS 10.7
when I typed in make, it produced a lot of "no such file or directory" error
Not sure if it is my problem or redis'....

$make
MAKE hiredis
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings 
  -arch i386 -arch x86_64 -g -ggdb  net.c
net.c:34:23: error: sys/types.h: No such file or directory
net.c:35:24: error: sys/socket.h: No such file or directory
net.c:36:24: error: sys/select.h: No such file or directory
net.c:37:20: error: sys/un.h: No such file or directory
net.c:38:24: error: netinet/in.h: No such file or directory
net.c:39:25: error: netinet/tcp.h: No such file or directory
net.c:40:23: error: arpa/inet.h: No such file or directory
net.c:41:20: error: unistd.h: No such file or directory
net.c:42:19: error: fcntl.h: No such file or directory
net.c:43:20: error: string.h: No such file or directory
net.c:44:19: error: netdb.h: No such file or directory
net.c:45:19: error: errno.h: No such file or directory
net.c:47:19: error: stdio.h: No such file or directory
In file included from net.h:36,
                 from net.c:49:
hiredis.h:36:47: error: sys/time.h: No such file or directory
In file included from net.h:36,
                 from net.c:49:

Original issue reported on code.google.com by ucla.h...@gmail.com on 25 Aug 2011 at 8:12

GoogleCodeExporter commented 8 years ago
Hi,

Do you have XCode installed ? You need it for the GCC libraries. 

Cheers

Original comment by Bul...@gmail.com on 30 Aug 2011 at 1:14

GoogleCodeExporter commented 8 years ago
Yes I did... Version 3.2.6

Original comment by ucla.h...@gmail.com on 30 Aug 2011 at 6:00

GoogleCodeExporter commented 8 years ago
You apparently have gcc installed somewhere, so the problem must be that 
installing Lion has changed the location of the system headers. I believe you 
need to upgrade Xcode to 4.0 or 4.1 (latest available via the App Store). 
Instead of installing the full Xcode package, you can also use this installer: 
https://github.com/kennethreitz/osx-gcc-installer

Can you confirm this fixes the issue for you?

Original comment by pcnoordh...@gmail.com on 30 Aug 2011 at 9:24

GoogleCodeExporter commented 8 years ago
Hi, Thanks for the reply! I just downloaded and installed the Xcode 4.1 full
package. Now redis can be installed and works just fine! Thank you very
much.

Original comment by ucla.h...@gmail.com on 30 Aug 2011 at 3:47

GoogleCodeExporter commented 8 years ago
Great!

Original comment by pcnoordh...@gmail.com on 30 Aug 2011 at 3:58