Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erizo: SRTP-NOTFOUND #41

Closed
frafra opened this issue Oct 21, 2013 · 12 comments
Closed

erizo: SRTP-NOTFOUND #41

frafra opened this issue Oct 21, 2013 · 12 comments

Comments

@frafra
Copy link

frafra commented Oct 21, 2013

Ubuntu 12.04 LTS 64 bit up-to-date, fresh installation.
Installation method: http://lynckia.com/licode/install.html

Result: toogle button doesn't work

Log:

$ ./licode/scripts/initBasicExample.sh
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:55 GMT] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:55 GMT] "GET /script.js HTTP/1.1" 304 - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:55 GMT] "GET /erizo.js HTTP/1.1" 200 76937 "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:58 GMT] "POST /createToken/ HTTP/1.1" - - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:44:47 GMT] "POST /createToken/ HTTP/1.1" - - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:45:55 GMT] "POST /createToken/ HTTP/1.1" - - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"

Error occurred during installation (but script didn't stop):

CMake Error at erizo/CMakeLists.txt:6 (message):
  lib not found: SRTP-NOTFOUND check README
Call Stack (most recent call first):
  erizo/CMakeLists.txt:41 (test_lib)


-- Configuring incomplete, errors occurred!
@jcague
Copy link
Contributor

jcague commented Oct 21, 2013

It usually occurs if something went wrong during installation. Please,
check the logs to see where the error occurs.

On 21 October 2013 19:49, Francesco Frassinelli notifications@github.comwrote:

Ubuntu 12.04 LTS 64 bit up-to-date, fresh installation.
Installation method: http://lynckia.com/licode/install.html

Result: toogle button doesn't work

Log:
$ ./licode/scripts/initBasicExample.sh
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for
alternatives
connect.limit() will be removed in connect 3.0
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:55 GMT] "GET / HTTP/1.1" 304 -
"-" "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:55 GMT] "GET /script.js
HTTP/1.1" 304 - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64;
rv:27.0) Gecko/20100101 Firefox/27.0"
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:55 GMT] "GET /erizo.js HTTP/1.1"
200 76937 "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64;
rv:27.0) Gecko/20100101 Firefox/27.0"
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:41:58 GMT] "POST /createToken/
HTTP/1.1" - - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64;
rv:27.0) Gecko/20100101 Firefox/27.0"
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:44:47 GMT] "POST /createToken/
HTTP/1.1" - - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64;
rv:27.0) Gecko/20100101 Firefox/27.0"
ServiceID and Key are required!!
151.66.60.206 - - [Mon, 21 Oct 2013 17:45:55 GMT] "POST /createToken/
HTTP/1.1" - - "http://frafra.ch:3001/" "Mozilla/5.0 (X11; Linux x86_64;
rv:27.0) Gecko/20100101 Firefox/27.0"


Reply to this email directly or view it on GitHubhttps://github.com//issues/41
.

@frafra
Copy link
Author

frafra commented Oct 21, 2013

Wow, thanks for your fast reply! I've just updated the description with the error that I've seen. I think that this kind of output should be saved somewhere automatically.

@jcague
Copy link
Contributor

jcague commented Oct 21, 2013

Is it a fresh installation? or did you upgrade to the last version from the repository?

@frafra
Copy link
Author

frafra commented Oct 21, 2013

Fresh installation. Just to be sure. I reset my VPS, setup locales, upgraded, installed git, installed dependencies, and try to install Erizo. Here you have some interesting log snippets:

-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   thread
--   regex
--   system
CMake Error at erizo/CMakeLists.txt:6 (message):
  lib not found: SRTP-NOTFOUND check README
Call Stack (most recent call first):
  erizo/CMakeLists.txt:41 (test_lib)


-- Configuring incomplete, errors occurred!
Done
make: *** No targets specified and no makefile found.  Stop.
Installing erizoAPI...
building with node-gyp
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/frafra/licode/erizoAPI/build'
  CXX(target) Release/obj.target/addon/addon.o
In file included from /home/frafra/licode/erizo/src/erizo/WebRtcConnection.h:11:0,
                 from ../WebRtcConnection.h:5,
                 from ../addon.cc:5:
/home/frafra/licode/erizo/src/erizo/SrtpChannel.h:10:23: fatal error: srtp/srtp.h: No such file or directory
compilation terminated.
make: *** [Release/obj.target/addon/addon.o] Error 1
make: Leaving directory `/home/frafra/licode/erizoAPI/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 2.6.32-042stab076.8
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/frafra/licode/erizoAPI
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok 
Installing erizoController...
[erizo_controller] Installing node_modules for erizo_controller
npm WARN package.json licode@0.1.0 No repository field.

@jcague
Copy link
Contributor

jcague commented Oct 21, 2013

Then it seems to be an error during libsrtp installation. Can you find more errors when running installErizo.sh and before the CMake error?

@frafra
Copy link
Author

frafra commented Oct 21, 2013

Build done. Please run 'make runtest' to run self tests.
rm -f /home/frafra/./licode/scripts/../build/libdeps/build//include/srtp/*.h
rm -f /home/frafra/./licode/scripts/../build/libdeps/build//lib/libsrtp.a
rmdir /home/frafra/./licode/scripts/../build/libdeps/build//include/srtp
rmdir: failed to remove `/home/frafra/./licode/scripts/../build/libdeps/build//include/srtp': No such file or directory
make: [uninstall] Error 1 (ignored)
/usr/bin/install -c -d /home/frafra/./licode/scripts/../build/libdeps/build//include/srtp
/usr/bin/install: cannot change permissions of `/home/frafra/./licode/scripts/../build/libdeps/build//include/srtp': No such file or directory
make: *** [install] Error 1
Installing erizo...

@jcague
Copy link
Contributor

jcague commented Oct 21, 2013

Thanks for the logs! Unfortunately, it seems this isn't the cause of the
error. Maybe it would be better if you attach a file with the entire
console output, so that we can look for the error on the logs.

@frafra
Copy link
Author

frafra commented Oct 21, 2013

Sorry, here it is:

Installing libsrtp...
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether byte ordering is bigendian... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to build for Linux kernel context... no
checking for /dev/urandom... yes
checking which random device to use... /dev/urandom
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for stdint.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for inttypes.h... (cached) yes
checking for sys/types.h... (cached) yes
checking machine/types.h usability... no
checking machine/types.h presence... no
checking for machine/types.h... no
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for unsigned long... yes
checking size of unsigned long... 8
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for socket... yes
checking for inet_aton... yes
checking for usleep... yes
checking for sigaction... yes
checking whether to compile in debugging... yes
checking whether to use ISMAcryp code... no
checking whether to use syslog for error reporting... no
checking whether to use stdout for error reporting... yes
checking whether to use /dev/console for error reporting... no
checking whether to use GDOI key management... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating crypto/Makefile
config.status: creating doc/Makefile
config.status: creating crypto/include/config.h
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c srtp/srtp.c -o srtp/srtp.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c srtp/ekt.c -o srtp/ekt.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/cipher/cipher.c -o crypto/cipher/cipher.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/cipher/null_cipher.c -o crypto/cipher/null_cipher.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/cipher/aes.c -o crypto/cipher/aes.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/cipher/aes_icm.c -o crypto/cipher/aes_icm.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/cipher/aes_cbc.c -o crypto/cipher/aes_cbc.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/hash/null_auth.c -o crypto/hash/null_auth.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/hash/sha1.c -o crypto/hash/sha1.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/hash/hmac.c -o crypto/hash/hmac.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/hash/auth.c -o crypto/hash/auth.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/math/datatypes.c -o crypto/math/datatypes.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/math/stat.c -o crypto/math/stat.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/kernel/crypto_kernel.c -o crypto/kernel/crypto_kernel.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/kernel/alloc.c -o crypto/kernel/alloc.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/kernel/key.c -o crypto/kernel/key.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/rng/rand_source.c -o crypto/rng/rand_source.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/rng/prng.c -o crypto/rng/prng.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/rng/ctr_prng.c -o crypto/rng/ctr_prng.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/kernel/err.c -o crypto/kernel/err.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/replay/rdb.c -o crypto/replay/rdb.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/replay/rdbx.c -o crypto/replay/rdbx.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -c crypto/replay/ut_sim.c -o crypto/replay/ut_sim.o
ar cr libsrtp.a srtp/srtp.o srtp/ekt.o crypto/cipher/cipher.o crypto/cipher/null_cipher.o crypto/cipher/aes.o crypto/cipher/aes_icm.o crypto/cipher/aes_cbc.o crypto/hash/null_auth.o crypto/hash/sha1.o crypto/hash/hmac.o crypto/hash/auth.o crypto/math/datatypes.o crypto/math/stat.o crypto/kernel/crypto_kernel.o crypto/kernel/alloc.o crypto/kernel/key.o crypto/rng/rand_source.o crypto/rng/prng.o crypto/rng/ctr_prng.o crypto/kernel/err.o crypto/replay/rdb.o crypto/replay/rdbx.o crypto/replay/ut_sim.o
ranlib libsrtp.a
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. crypto/test/aes_calc.c -o crypto/test/aes_calc -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. crypto/test/cipher_driver.c -o crypto/test/cipher_driver -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. crypto/test/datatypes_driver.c -o crypto/test/datatypes_driver -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. crypto/test/kernel_driver.c -o crypto/test/kernel_driver -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. crypto/test/rand_gen.c -o crypto/test/rand_gen -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. crypto/test/sha1_driver.c -o crypto/test/sha1_driver -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. crypto/test/stat_driver.c -o crypto/test/stat_driver -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. -o test/srtp_driver test/srtp_driver.c test/getopt_s.c libsrtp.a  -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. test/replay_driver.c -o test/replay_driver -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. test/roc_driver.c -o test/roc_driver -lsrtp 
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. -o test/rdbx_driver test/rdbx_driver.c test/getopt_s.c libsrtp.a  -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. -o test/rtpw test/rtpw.c test/rtp.c test/getopt_s.c libsrtp.a  -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include  -fPIC -L. -o test/dtls_srtp_driver test/dtls_srtp_driver.c test/getopt_s.c libsrtp.a  -lsrtp
Build done. Please run 'make runtest' to run self tests.
rm -f /home/frafra/./licode/scripts/../build/libdeps/build//include/srtp/*.h
rm -f /home/frafra/./licode/scripts/../build/libdeps/build//lib/libsrtp.a
rmdir /home/frafra/./licode/scripts/../build/libdeps/build//include/srtp
rmdir: failed to remove `/home/frafra/./licode/scripts/../build/libdeps/build//include/srtp': No such file or directory
make: [uninstall] Error 1 (ignored)
/usr/bin/install -c -d /home/frafra/./licode/scripts/../build/libdeps/build//include/srtp
/usr/bin/install: cannot change permissions of `/home/frafra/./licode/scripts/../build/libdeps/build//include/srtp': No such file or directory
make: *** [install] Error 1
Installing erizo...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.32.4
-- Found glib-2.0: /usr/include/glib-2.0, /usr/lib/x86_64-linux-gnu/libglib-2.0.so;/usr/lib/x86_64-linux-gnu/libgobject-2.0.so;/usr/lib/x86_64-linux-gnu/libgthread-2.0.so
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   thread
--   regex
--   system
CMake Error at erizo/CMakeLists.txt:6 (message):
  lib not found: SRTP-NOTFOUND check README
Call Stack (most recent call first):
  erizo/CMakeLists.txt:41 (test_lib)


-- Configuring incomplete, errors occurred!
Done
make: *** No targets specified and no makefile found.  Stop.
Installing erizoAPI...
building with node-gyp
gyp info it worked if it ends with ok
gyp info using node-gyp@0.10.10
gyp info using node@0.10.21 | linux | x64
gyp http GET http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
gyp info spawn python
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/frafra/licode/erizoAPI/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/frafra/.node-gyp/0.10.21/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/frafra/.node-gyp/0.10.21',
gyp info spawn args   '-Dmodule_root_dir=/home/frafra/licode/erizoAPI',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/frafra/licode/erizoAPI/build'
  CXX(target) Release/obj.target/addon/addon.o
In file included from /home/frafra/licode/erizo/src/erizo/WebRtcConnection.h:11:0,
                 from ../WebRtcConnection.h:5,
                 from ../addon.cc:5:
/home/frafra/licode/erizo/src/erizo/SrtpChannel.h:10:23: fatal error: srtp/srtp.h: No such file or directory
compilation terminated.
make: *** [Release/obj.target/addon/addon.o] Error 1
make: Leaving directory `/home/frafra/licode/erizoAPI/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 2.6.32-042stab076.8
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/frafra/licode/erizoAPI
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok 
Installing erizoController...
[erizo_controller] Installing node_modules for erizo_controller
npm WARN package.json licode@0.1.0 No repository field.
npm http GET https://registry.npmjs.org/amqp
npm http 200 https://registry.npmjs.org/amqp
npm http GET https://registry.npmjs.org/amqp/-/amqp-0.1.7.tgz
npm http 200 https://registry.npmjs.org/amqp/-/amqp-0.1.7.tgz
amqp@0.1.7 ../../node_modules/amqp
npm WARN package.json licode@0.1.0 No repository field.
npm http GET https://registry.npmjs.org/socket.io
npm http 200 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http 200 https://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http GET https://registry.npmjs.org/socket.io-client/0.9.16
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http 200 https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
npm http 200 https://registry.npmjs.org/socket.io-client/0.9.16
npm http GET https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9.16.tgz
npm http 200 https://registry.npmjs.org/base64id/0.1.0
npm http 200 https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz
npm http GET https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
npm http 200 https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9.16.tgz
npm http 200 https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
npm http 200 https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 200 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
npm http 200 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http GET https://registry.npmjs.org/active-x-obfuscator/-/active-x-obfuscator-0.0.1.tgz
npm http 200 https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
npm http 200 https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/ws/-/ws-0.4.31.tgz
npm http 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
npm http 200 https://registry.npmjs.org/active-x-obfuscator/-/active-x-obfuscator-0.0.1.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
npm http 200 https://registry.npmjs.org/ws/-/ws-0.4.31.tgz
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/options
npm http 200 https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
npm http 200 https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/tinycolor/-/tinycolor-0.0.1.tgz
npm http 200 https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/options/-/options-0.0.5.tgz
npm http 200 https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http 200 https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/nan/-/nan-0.3.2.tgz
npm http 200 https://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
npm http 200 https://registry.npmjs.org/tinycolor/-/tinycolor-0.0.1.tgz
npm http 200 https://registry.npmjs.org/options/-/options-0.0.5.tgz
npm http 200 https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http 200 https://registry.npmjs.org/nan/-/nan-0.3.2.tgz

> ws@0.4.31 install /home/frafra/licode/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/frafra/licode/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/home/frafra/licode/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
socket.io@0.9.16 ../../node_modules/socket.io
├── base64id@0.1.0
├── policyfile@0.0.4
├── redis@0.7.3
└── socket.io-client@0.9.16 (xmlhttprequest@1.4.2, uglify-js@1.2.5, ws@0.4.31, active-x-obfuscator@0.0.1)
npm WARN package.json licode@0.1.0 No repository field.
npm http GET https://registry.npmjs.org/winston
npm http 200 https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/winston/-/winston-0.7.2.tgz
npm http 200 https://registry.npmjs.org/winston/-/winston-0.7.2.tgz
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/request
npm http 200 https://registry.npmjs.org/colors
npm http 200 https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/colors/-/colors-0.6.2.tgz
npm http GET https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz
npm http 200 https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/cycle/-/cycle-1.0.2.tgz
npm http 200 https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.7.tgz
npm http 200 https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/pkginfo/-/pkginfo-0.3.0.tgz
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/request/-/request-2.16.6.tgz
npm http 200 https://registry.npmjs.org/colors/-/colors-0.6.2.tgz
npm http 200 https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz
npm http 200 https://registry.npmjs.org/cycle/-/cycle-1.0.2.tgz
npm http 200 https://registry.npmjs.org/pkginfo/-/pkginfo-0.3.0.tgz
npm http 200 https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.7.tgz
npm http 200 https://registry.npmjs.org/request/-/request-2.16.6.tgz
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/form-data/-/form-data-0.0.10.tgz
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/hawk/-/hawk-0.10.2.tgz
npm http GET https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.2.0.tgz
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/aws-sign/-/aws-sign-0.2.0.tgz
npm http GET https://registry.npmjs.org/forever-agent/-/forever-agent-0.2.0.tgz
npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.2.0.tgz
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.2.0.tgz
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-3.0.0.tgz
npm http 304 https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/qs/-/qs-0.5.6.tgz
npm http 200 https://registry.npmjs.org/form-data/-/form-data-0.0.10.tgz
npm http 200 https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.2.0.tgz
npm http 200 https://registry.npmjs.org/hawk/-/hawk-0.10.2.tgz
npm http 200 https://registry.npmjs.org/aws-sign/-/aws-sign-0.2.0.tgz
npm http 200 https://registry.npmjs.org/forever-agent/-/forever-agent-0.2.0.tgz
npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.2.0.tgz
npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.2.0.tgz
npm http 200 https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-3.0.0.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-0.5.6.tgz
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.11"})
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/hoek/-/hoek-0.7.6.tgz
npm http GET https://registry.npmjs.org/cryptiles/-/cryptiles-0.1.3.tgz
npm http GET https://registry.npmjs.org/boom/-/boom-0.3.8.tgz
npm http GET https://registry.npmjs.org/sntp/-/sntp-0.1.4.tgz
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http 200 https://registry.npmjs.org/hoek/-/hoek-0.7.6.tgz
npm http 200 https://registry.npmjs.org/cryptiles/-/cryptiles-0.1.3.tgz
npm http 200 https://registry.npmjs.org/boom/-/boom-0.3.8.tgz
npm http 200 https://registry.npmjs.org/sntp/-/sntp-0.1.4.tgz
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.11"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.11"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.11"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.11"})
winston@0.7.2 ../../node_modules/winston
├── cycle@1.0.2
├── stack-trace@0.0.7
├── eyes@0.1.8
├── colors@0.6.2
├── async@0.2.9
├── pkginfo@0.3.0
└── request@2.16.6 (forever-agent@0.2.0, aws-sign@0.2.0, tunnel-agent@0.2.0, oauth-sign@0.2.0, json-stringify-safe@3.0.0, cookie-jar@0.2.0, node-uuid@1.4.1, mime@1.2.11, qs@0.5.6, form-data@0.0.10, hawk@0.10.2)
[erizo_controller] Done, node_modules installed
[erizo_controller] Done, erizo.js compiled

@dennismartensson
Copy link
Contributor

Hi,

I did try to install on a new ubuntu 32 bit and got this during ./licode/scripts/installErizo.sh

gyp info spawn args '-I',
gyp info spawn args '/home/licode/erizoAPI/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/0.10.21/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.10.21',
gyp info spawn args '-Dmodule_root_dir=/home/licode/erizoAPI',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory /home/licode/erizoAPI/build' CXX(target) Release/obj.target/addon/addon.o CXX(target) Release/obj.target/addon/WebRtcConnection.o ../WebRtcConnection.cc: In static member function ‘static v8::Handle<v8::Value> WebRtcConnection::New(const v8::Arguments&)’: ../WebRtcConnection.cc:48:8: error: redeclaration of ‘bool a’ ../WebRtcConnection.cc:40:8: error: ‘bool a’ previously declared here ../WebRtcConnection.cc:49:8: error: redeclaration of ‘bool v’ ../WebRtcConnection.cc:41:8: error: ‘bool v’ previously declared here make: *** [Release/obj.target/addon/WebRtcConnection.o] Error 1 make: Leaving directory/home/licode/erizoAPI/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.9.3-x86-linode52
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/licode/erizoAPI
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
Installing erizoController...
[erizo_controller] Installing node_modules for erizo_controller
npm WARN package.json licode@0.1.0 No repository field.
npm http GET https://registry.npmjs.org/amqp
npm http 304 https://registry.npmjs.org/amqp
amqp@0.1.7 ../../node_modules/amqp

Its a new build and on a new installation.

@frafra: Did you find a fix?

@frafra
Copy link
Author

frafra commented Oct 21, 2013

@dennismartensson No, I didn't solved, but they look like different problems. Take in mind that actually only Ubuntu 12.04 LTS is supported. I'm using 64 bit version currently, but the tutorial doesn't say if I have to use 32 bit version, so I suppose that it's not a problem.

@jcague
Copy link
Contributor

jcague commented Oct 22, 2013

@frafra We have resolved this issue now in the master branch. Please, can you update the code from the repository and install everything again?

Given that the problem was related to permissions it's better to delete the build directory with the next command:

sudo rm -rf build

Once you've done it, you can install everything again.

@frafra
Copy link
Author

frafra commented Oct 22, 2013

@jcague Thank you, now it's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants