Closed GoogleCodeExporter closed 9 years ago
To build Redis you only need to type "make", not "make test". The latter is
failing because your OS doesn't have tclsh installed. This is not a problem for
running Redis itself, only for running the test suite. After running "make"
you'll find the binaries in the src/ subdirectory, or you can install them to
/usr/local by running "make install".
Cheers,
Pieter
Original comment by pcnoordh...@gmail.com
on 18 Jun 2011 at 1:34
Thank you for your comment Pieter, I really appreachiate it.
I still get some errors while using make or make install, do you have any idea
how I get further with this installation? See errors below.
When I try make command I get this error:
----------------------------------------
# make
cd src && make all
make[1]: Entering directory `/root/redis-2.2.10/src'
cd ../deps/hiredis && make static ARCH=""
make[2]: Entering directory `/root/redis-2.2.10/deps/hiredis'
make[2]: Nothing to be done for `static'.
make[2]: Leaving directory `/root/redis-2.2.10/deps/hiredis'
cd ../deps/linenoise && make ARCH=""
make[2]: Entering directory `/root/redis-2.2.10/deps/linenoise'
make[2]: `linenoise_example' is up to date.
make[2]: Leaving directory `/root/redis-2.2.10/deps/linenoise'
cd ../deps/hiredis && make static
make[2]: Entering directory `/root/redis-2.2.10/deps/hiredis'
make[2]: Nothing to be done for `static'.
make[2]: Leaving directory `/root/redis-2.2.10/deps/hiredis'
cc -o redis-benchmark -std=c99 -pedantic -O2 -Wall -W -lm -pthread -g
-rdynamic -ggdb ae.o anet.o redis-benchmark.o sds.o adlist.o zmalloc.o
../deps/hiredis/libhiredis.a
cc -o redis-cli -std=c99 -pedantic -O2 -Wall -W -lm -pthread -g -rdynamic
-ggdb anet.o sds.o adlist.o redis-cli.o zmalloc.o release.o
../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
Hint: To run 'make test' is a good idea ;)
make[1]: Leaving directory `/root/redis-2.2.10/src'
When I do make install, I get this one:
----------------------------------------
# make install
cd src && make install
make[1]: Entering directory `/root/redis-2.2.10/src'
cd ../deps/hiredis && make static ARCH=""
make[2]: Entering directory `/root/redis-2.2.10/deps/hiredis'
make[2]: Nothing to be done for `static'.
make[2]: Leaving directory `/root/redis-2.2.10/deps/hiredis'
cd ../deps/linenoise && make ARCH=""
make[2]: Entering directory `/root/redis-2.2.10/deps/linenoise'
make[2]: `linenoise_example' is up to date.
make[2]: Leaving directory `/root/redis-2.2.10/deps/linenoise'
cd ../deps/hiredis && make static
make[2]: Entering directory `/root/redis-2.2.10/deps/hiredis'
make[2]: Nothing to be done for `static'.
make[2]: Leaving directory `/root/redis-2.2.10/deps/hiredis'
cc -o redis-benchmark -std=c99 -pedantic -O2 -Wall -W -lm -pthread -g
-rdynamic -ggdb ae.o anet.o redis-benchmark.o sds.o adlist.o zmalloc.o
../deps/hiredis/libhiredis.a
cc -o redis-cli -std=c99 -pedantic -O2 -Wall -W -lm -pthread -g -rdynamic
-ggdb anet.o sds.o adlist.o redis-cli.o zmalloc.o release.o
../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
Hint: To run 'make test' is a good idea ;)
mkdir -p /usr/local/bin
cp -p redis-server /usr/local/bin
cp -p redis-benchmark /usr/local/bin
cp -p redis-cli /usr/local/bin
cp -p redis-check-dump /usr/local/bin
cp -p redis-check-aof /usr/local/bin
make[1]: Leaving directory `/root/redis-2.2.10/src'
Original comment by berent...@gmail.com
on 19 Jun 2011 at 1:54
I don't see any errors here, and think you're good to go.
Cheers,
Pieter
Original comment by pcnoordh...@gmail.com
on 19 Jun 2011 at 5:45
Thanks so much Pieter for assisting, I feel abit green here :)
So the binaries, witch files is that and where do I put them so I can run redis
commands?
Ken
Original comment by berent...@gmail.com
on 20 Jun 2011 at 3:25
No problem. I do want to give you the heads-up here (no offence): if you have
trouble running Redis in the first place, tracking down errors when they happen
will be a problem. If you're planning on running something business-critical
with Redis you might want to consider hiring someone who knows his/her way
around Unix.
There are:
1) redis-server: The Redis server: run "redis-server" to start it.
2) redis-cli: The Redis command line tool: run "redis-cli" to start it.
The default settings are good enough to get started.
Cheers,
Pieter
Original comment by pcnoordh...@gmail.com
on 20 Jun 2011 at 5:09
[deleted comment]
Thanks a lot Pieter :)
Original comment by berent...@gmail.com
on 21 Jun 2011 at 8:58
Original issue reported on code.google.com by
berent...@gmail.com
on 18 Jun 2011 at 12:28