Re: configure syntax error

450 views
Skip to first unread message

Shane

unread,
Jul 21, 2012, 1:37:20 PM7/21/12
to nod...@googlegroups.com
I've also read about the Python version issues. I'm using Python 2.6.5, which I understand can be used here. 

Ben Noordhuis

unread,
Jul 24, 2012, 10:27:04 AM7/24/12
to nod...@googlegroups.com
On Sat, Jul 21, 2012 at 7:28 PM, shane <shaneis...@gmail.com> wrote:
> Hi all,
>
> I'm attempting to build an updated node.js (0.8.2) on a Joyent SmartMachine
> but am unable to run the configure script (output is below). I've previously
> been using 0.5.7. On some experimentation, I've found that I can build the
> 0.6 branch but not 0.7.x or 0.8.x. Usually I can hack my way through this
> stuff, but I'm not sure where to look in this case. I imagine it's something
> simple. Can anyone give me a solution?
>
> { 'target_defaults': { 'cflags': [],
> 'default_configuration': 'Release',
> 'defines': [],
> 'include_dirs': [],
> 'libraries': []},
> 'variables': { 'host_arch': 'ia32',
> 'node_install_npm': 'true',
> 'node_install_waf': 'true',
> 'node_no_strict_aliasing': 1,
> 'node_prefix': '',
> 'node_shared_openssl': 'false',
> 'node_shared_v8': 'false',
> 'node_shared_zlib': 'false',
> 'node_use_dtrace': 'true',
> 'node_use_etw': 'false',
> 'node_use_openssl': 'true',
> 'strict_aliasing': 'false',
> 'target_arch': 'ia32',
> 'v8_no_strict_aliasing': 1,
> 'v8_use_snapshot': 'true'}}
> creating ./config.gypi
> creating ./config.mk
> /bin/sh: syntax error at line 1: `$' unexpected
> Traceback (most recent call last):
> File "tools/gyp_node", line 58, in <module>
> run_gyp(gyp_args)
> File "tools/gyp_node", line 18, in run_gyp
> rc = gyp.main(args)
>
> [ . . . ]
>
> File "./tools/gyp/pylib/gyp/input.py", line 714, in ExpandVariables
> (contents, p.returncode))
> Exception: Call to '(echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E - >
> /dev/null 2>&1) && echo "-m32" || true' returned exit status 2. while
> loading dependencies of /home/admin/node-v0.8.2/node.gyp while trying to
> load /home/admin/node-v0.8.2/node.gyp
>
>
> Thanks in advance for any help.
>
> Shane

I suspect that you need to upgrade your make. GNU make 3.81+ is required.

Shane Iseminger

unread,
Jul 24, 2012, 2:30:20 PM7/24/12
to nod...@googlegroups.com
Hi Ben,

Thanks, that was my initial thinking, but I'm using gmake 3.81.

Ben Noordhuis

unread,
Jul 25, 2012, 8:42:48 AM7/25/12
to nod...@googlegroups.com
On Tue, Jul 24, 2012 at 8:30 PM, Shane Iseminger
<sh...@shaneiseminger.com> wrote:
> Thanks, that was my initial thinking, but I'm using gmake 3.81.

Is your shell bash? In theory, any Bourne-compliant shell should work
but in practice it (probably) won't.
Reply all
Reply to author
Forward
0 new messages