Unable to install redis on solaris 11

235 views
Skip to first unread message

sridhar c

unread,
Jun 29, 2017, 1:27:03 AM6/29/17
to Redis DB
Hi Team,

I'm getting compilation error while setting up the Redis server on Solaris 11. Can you please advise.

Steps taken:

root@solaris:~# ls
redis-stable         redis-stable.tar.gz

root@solaris:~# cd redis-stable
root@solaris:~/redis-stable# ls
00-RELEASENOTES   CONTRIBUTING      INSTALL           Makefile          deps              runtest           runtest-sentinel  src               utils
BUGS              COPYING           MANIFESTO         README.md         redis.conf        runtest-cluster   sentinel.conf     tests

tried with make command

root@solaris:~/redis-stable# make
cd src && make all
make: Fatal error in reader: Makefile, line 16: Unexpected end of line seen
Current working directory /root/redis-stable/src
*** Error code 1
make: Fatal error: Command failed for target `all'

tried with gmake
root@solaris:~/redis-stable# gmake
cd src && gmake all
gmake[1]: Entering directory `/root/redis-stable/src'
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-rdb redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html
(cd ../deps && gmake distclean)
gmake[2]: Entering directory `/root/redis-stable/deps'
(cd hiredis && gmake clean) > /dev/null || true
(cd linenoise && gmake clean) > /dev/null || true
(cd lua && gmake clean) > /dev/null || true
(cd geohash-int && gmake clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && gmake distclean) > /dev/null || true
(rm -f .make-*)
gmake[2]: Leaving directory `/root/redis-stable/deps'
(rm -f .make-*)
echo STD=-std=c99 -pedantic -DREDIS_STATIC='' >> .make-settings
echo WARN=-Wall -W >> .make-settings
echo OPT=-O2 >> .make-settings
echo MALLOC=libc >> .make-settings
echo CFLAGS= >> .make-settings
echo LDFLAGS= >> .make-settings
echo REDIS_CFLAGS= >> .make-settings
echo REDIS_LDFLAGS= >> .make-settings
echo PREV_FINAL_CFLAGS=-std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -O2 -g -ggdb   -I../deps/geohash-int -D__EXTENSIONS__ -D_XPG6 -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src >> .make-settings
echo PREV_FINAL_LDFLAGS=  -g -ggdb >> .make-settings
(cd ../deps && gmake hiredis linenoise lua geohash-int)
gmake[2]: Entering directory `/root/redis-stable/deps'
(cd hiredis && gmake clean) > /dev/null || true
(cd linenoise && gmake clean) > /dev/null || true
(cd lua && gmake clean) > /dev/null || true
(cd geohash-int && gmake clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && gmake distclean) > /dev/null || true
(rm -f .make-*)
(echo "" > .make-cflags)
(echo "" > .make-ldflags)
MAKE hiredis
cd hiredis && gmake static
gmake[3]: Entering directory `/root/redis-stable/deps/hiredis'
gcc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  net.c
gcc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  hiredis.c
gcc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  sds.c
gcc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  async.c
ar rcs libhiredis.a net.o hiredis.o sds.o async.o
gmake[3]: Leaving directory `/root/redis-stable/deps/hiredis'
MAKE linenoise
cd linenoise && gmake
gmake[3]: Entering directory `/root/redis-stable/deps/linenoise'
cc  -Wall -Os -g  -c linenoise.c
gmake[3]: cc: Command not found
gmake[3]: *** [linenoise.o] Error 127
gmake[3]: Leaving directory `/root/redis-stable/deps/linenoise'
gmake[2]: *** [linenoise] Error 2
gmake[2]: Leaving directory `/root/redis-stable/deps'
gmake[1]: [persist-settings] Error 2 (ignored)
    CC adlist.o
/bin/sh: line 1: cc: not found
gmake[1]: *** [adlist.o] Error 127
gmake[1]: Leaving directory `/root/redis-stable/src'
gmake: *** [all] Error 2
root@solaris:~/redis-stable# ^C
root@solaris:~/redis-stable# ^C
root@solaris:~/redis-stable#


Paulino Huerta

unread,
Jun 29, 2017, 2:36:25 AM6/29/17
to redis-db
Hi,

Apparently gmake does not find the cc command.

Try:

# ln -s /usr/bin/gcc /usr/bin/cc



--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages