i just need to run the command ./gyp_uv -f make. but here is what happens. can someone help?
failing this, is there an already-compiled version of libuv that i could obtain?
thank you, doug
% ./gyp_uv -f make Traceback (most recent call last): File "./gyp_uv", line 12, in ? import gyp File "./build/gyp/pylib/gyp/__init__.py", line 8, in ? import gyp.input File "./build/gyp/pylib/gyp/input.py", line 14, in ? import gyp.common File "./build/gyp/pylib/gyp/common.py", line 374 with open(source_path) as source_file: ^ SyntaxError: invalid syntax
The gyp_uv file is located in the tools/ directory. You'll also need gyp for it to work; there may be a package for it (atleast, ubuntu has one), otherwise you can git clone http://git.chromium.org/external/gyp.git.
There is also a "normal" makefile, so just 'make' should do the trick too.
On Friday, August 10, 2012 2:54:21 AM UTC+2, Bert Belder wrote:
> The gyp_uv file is located in the tools/ directory. You'll also need gyp > for it to work; there may be a package for it (atleast, ubuntu has one), > otherwise you can git clone http://git.chromium.org/external/gyp.git.
> There is also a "normal" makefile, so just 'make' should do the trick too.
> - Bert
> On Friday, August 10, 2012 2:49:58 AM UTC+2, dct wrote:
>> hello all,
>> i downloaded libuv with git and gyp with svn. my linux environment is >> centos 5 and python 2.4.
>> i have been unable to build libuv. according to the instruction here:
On Friday, August 10, 2012 2:54:21 AM UTC+2, Bert Belder wrote:
> The gyp_uv file is located in the tools/ directory. You'll also need gyp
> for it to work; there may be a package for it (atleast, ubuntu has one),
> otherwise you can git clone http://git.chromium.org/external/gyp.git.
> There is also a "normal" makefile, so just 'make' should do the trick too.
> - Bert
> On Friday, August 10, 2012 2:49:58 AM UTC+2, dct wrote:
>> hello all,
>> i downloaded libuv with git and gyp with svn. my linux environment is
>> centos 5 and python 2.4.
>> i have been unable to build libuv. according to the instruction here:
>> i just need to run the command ./gyp_uv -f make. but here is what
>> happens. can someone help?
>> failing this, is there an already-compiled version of libuv that i could
>> obtain?
>> thank you,
>> doug
>> % ./gyp_uv -f make
>> Traceback (most recent call last):
>> File "./gyp_uv", line 12, in ?
>> import gyp
>> File "./build/gyp/pylib/gyp/__init__.py", line 8, in ?
>> import gyp.input
>> File "./build/gyp/pylib/gyp/input.py", line 14, in ?
>> import gyp.common
>> File "./build/gyp/pylib/gyp/common.py", line 374
>> with open(source_path) as source_file:
>> ^
>> SyntaxError: invalid syntax
>> --
You received this message because you are subscribed to the Google Groups
"libuv" group.
To post to this group, send email to libuv@googlegroups.com.
Visit this group at http://groups.google.com/group/libuv?hl=en-US.
On Fri, Aug 10, 2012 at 5:38 PM, dct <dct...@gmail.com> wrote:
> python 2.7 - check. on to the next roadblock!
> now this is happening (compiling on centos 5). switching to gcc 4.1.2
> doesn't change anything.
> building this is proving to be unnecessarily difficult. are there
> pre-compiled versions of libuv available anywhere?
> thank you,
> d
> cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE
> -Iinclude -Iinclude/uv-private -Isrc -Isrc/unix/ev -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -g -c src/unix/async.c -o src/unix/async.o
> cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE
> -Iinclude -Iinclude/uv-private -Isrc -Isrc/unix/ev -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -g -c src/unix/core.c -o src/unix/core.o
> cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE
> -Iinclude -Iinclude/uv-private -Isrc -Isrc/unix/ev -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -g -c src/unix/dl.c -o src/unix/dl.o
> cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE
> -Iinclude -Iinclude/uv-private -Isrc -Isrc/unix/ev -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -g -c src/unix/error.c -o src/unix/error.o
> In file included from src/unix/internal.h:40,
> from src/unix/async.c:22:
> src/unix/linux/syscalls.h:74: error: expected specifier-qualifier-list
> before ‘__u64’
> In file included from src/unix/internal.h:40,
> from src/unix/core.c:22:
> src/unix/linux/syscalls.h:74: error: expected specifier-qualifier-list
> before ‘__u64’
> make: *** [src/unix/async.o] Error 1
> make: *** Waiting for unfinished jobs....
> In file included from src/unix/internal.h:40,
> from src/unix/error.c:28:
> src/unix/linux/syscalls.h:74: error: expected specifier-qualifier-list
> before ‘__u64’
> make: *** [src/unix/error.o] Error 1
> In file included from src/unix/internal.h:40,
> from src/unix/dl.c:23:
> src/unix/linux/syscalls.h:74: error: expected specifier-qualifier-list
> before ‘__u64’make: *** [src/unix/core.o] Error 1
You're probably missing some kernel headers. I forgot what the package
is called on RHEL derivatives but they're in linux-headers-generic on
Debian-based distros.
We don't provide precompiled binaries, by the way.