Trouble with install

180 views
Skip to first unread message

JDennison

unread,
Jul 23, 2011, 7:20:47 PM7/23/11
to r-node-users
I have node ( v0.5.3-pre) up and working and Rserver is running in the
background. I am trying to install on a Ubuntu 10.10 64-bit box and
get this error when i try to make the r-node file.

make[1]: Entering directory `/home/jdennison/r-node-v0.1.1/server'
g++ -I/usr/local/include/node -Isrc/include -DPIC -fPIC -g -c -
DEV_MULTIPLICITY=0 -c -o src/binding.o src/binding.cc
src/binding.cc:23:18: error: node.h: No such file or directory
src/binding.cc:24:25: error: node_events.h: No such file or directory
In file included from src/Rconnection.h:46,
from src/binding.cc:32:
src/include/Rsrv.h:32:20: error: config.h: No such file or directory
src/binding.cc:34: error: âv8â is not a namespace-name
src/binding.cc:34: error: expected namespace-name before â;â token
src/binding.cc:35: error: ânodeâ is not a namespace-name
src/binding.cc:35: error: expected namespace-name before â;â token
src/binding.cc:36: error: expected initializer before â<â token
src/binding.cc:37: error: expected initializer before â<â token
src/binding.cc:38: error: expected initializer before â<â token
src/binding.cc:39: error: expected initializer before â<â token
src/binding.cc:40: error: expected initializer before â<â token
src/binding.cc:85: error: expected constructor, destructor, or type
conversion before â<â token
make[1]: *** [src/binding.o] Error 1
make[1]: Leaving directory `/home/jdennison/r-node-v0.1.1/server'
make: *** [server] Error 2


Any help would be greatly appreciated.

Thanks

John

Jamie Love

unread,
Jul 24, 2011, 5:03:43 PM7/24/11
to r-node...@googlegroups.com
Hi there,

It appears that you're missing NodeJS  (node.h is missing).


You'll need to download/install Jode from http://nodejs.org/#download, and ensure you run 'sudo make install' to install into /usr/local/include/node.

At the moment it isn't dynamic, so if you're installed NodeJS somewhere else, please edit server/Makefile, and change:

-I/usr/local/include/node

to point to the correct directory.

Regards
-- 
Jamie Love
Looking for custom software development? Contact us at www.nsquaredsoftware.com.

JDennison

unread,
Jul 25, 2011, 5:15:59 PM7/25/11
to r-node-users
Thanks for the quick response. I am somewhat of a novice when it comes
to linux so trying to interpret the Makefile is some what difficult. I
did a recursive search for node.h and found :
jdennison@domU-12-xx-xx-xx-xx:/$ sudo find -name node.h
./usr/src/linux-headers-2.6.32-309-ec2/include/linux/node.h
./usr/src/linux-headers-2.6.32-309/include/linux/node.h
./home/jdennison/node/src/node.h
./home/jdennison/local/node/include/node/node.h

i could not find node_events.h anywhere.

when i replace the make file with g++ -I/home/jdennison/local/node/ -
Isrc/include -DPIC -fPIC -g -c -DEV_MULTIPLICITY=0 -c -o src/
binding.o src/binding.cc

i get the same error.

make[1]: Entering directory `/home/jdennison/r-node-v0.1.1/server'
g++ -I/home/jdennison/local/node/ -Isrc/include -DPIC -fPIC -g -c -
DEV_MULTIPLICITY=0 -c -o src/binding.o src/binding.cc
src/binding.cc:23:18: error: node.h: No such file or directory
src/binding.cc:24:25: error: node_events.h: No such file or directory
In file included from src/Rconnection.h:46,
from src/binding.cc:32:
src/include/Rsrv.h:32:20: error: config.h: No such file or directory
src/binding.cc:34: error: âv8â is not a namespace-name
src/binding.cc:34: error: expected namespace-name before â;â token
src/binding.cc:35: error: ânodeâ is not a namespace-name
src/binding.cc:35: error: expected namespace-name before â;â token
src/binding.cc:36: error: expected initializer before â<â token
src/binding.cc:37: error: expected initializer before â<â token
src/binding.cc:38: error: expected initializer before â<â token
src/binding.cc:39: error: expected initializer before â<â token
src/binding.cc:40: error: expected initializer before â<â token
src/binding.cc:85: error: expected constructor, destructor, or type
conversion before â<â token
make[1]: *** [src/binding.o] Error 1
make[1]: Leaving directory `/home/jdennison/r-node-v0.1.1/server'
make: *** [server] Error 2


I should say that node works from command line and i can code the
basic web servers they have on the website. What am i entering
incorrectly.

Thanks

John



On Jul 24, 5:03 pm, Jamie Love <drjl...@gmail.com> wrote:
> Hi there,
>
> It appears that you're missing NodeJS  (node.h is missing).
>
> You'll need to download/install Jode fromhttp://nodejs.org/#download, and

Jamie Love

unread,
Jul 25, 2011, 7:56:38 PM7/25/11
to r-node...@googlegroups.com
Hiya,

I believe the line should be:

CPPFLAGS = -I/home/jdennison/local/node/include/node/ -Isrc/include -DPIC -fPIC -g -c -DEV_MULTIPLICITY=0

 - note the additional 'include/node' bit to the include path

Regards
Jamie
Reply all
Reply to author
Forward
0 new messages