Re: errors building libuv on linux

594 views
Skip to first unread message

Bert Belder

unread,
Aug 9, 2012, 8:54:21 PM8/9/12
to li...@googlegroups.com
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:

https://github.com/joyent/libuv

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

Bert Belder

unread,
Aug 9, 2012, 8:56:13 PM8/9/12
to li...@googlegroups.com
I'm sorry - I gave you the wrong instructions, these were for node.js :-/

You need to install gyp, and you also need python 2.x. But I suggest you try the makefile first.

Ben Noordhuis

unread,
Aug 10, 2012, 6:59:57 AM8/10/12
to li...@googlegroups.com
On Fri, Aug 10, 2012 at 2:56 AM, Bert Belder <bertb...@gmail.com> wrote:
> You need to install gyp, and you also need python 2.x.

More specifically, you need python 2.6 or 2.7. Install or symlink gyp
to build/gyp.

Saúl Ibarra Corretgé

unread,
Aug 10, 2012, 3:00:44 AM8/10/12
to li...@googlegroups.com
That Python version is too old. It's older than YouTube! Time for an upgrade ;-)


/Saúl

--
You received this message because you are subscribed to the Google Groups "libuv" group.
To post to this group, send email to li...@googlegroups.com.
Visit this group at http://groups.google.com/group/libuv?hl=en-US.
 
 

dct

unread,
Aug 10, 2012, 11:38:25 AM8/10/12
to li...@googlegroups.com
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

Ben Noordhuis

unread,
Aug 10, 2012, 12:05:28 PM8/10/12
to li...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages