Menos instalação do compilador CSS

2

Eu queria instalar menos compilador no meu computador, mas quando eu corri o seguinte comando:

sudo gem install less

E o comando make parou o seguinte erro:

g++ -shared -o v8.so v8_locker.o v8_debug.o v8_date.o v8_object.o v8.o rr.o v8_context.o v8_value.o v8_script.o v8_v8.o v8_callbacks.o v8_handle.o v8_weakref.o v8_template.o v8_message.o v8_function.o v8_string.o v8_array.o v8_try_catch.o v8_external.o v8_exception.o -L/home/segi/.gem/ruby/1.9.1/gems/libv8-3.3.10.2/lib/libv8/build/v8 -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic    -lruby-1.9.1 -lpthread  -lpthread -lrt -ldl -lcrypt -lm   -lc -lv8
/usr/bin/ld: cannot find -lv8
collect2: ld returned 1 exit status
make: *** [v8.so] Error 1

Qual pacote está faltando? Ou qual é o problema? Obrigado a resposta!

sudo apt-get install libv8-dev 

Foi um bom pacote, mas agora recebi o seguinte erro:

g++ -I. -I/usr/include/ruby-1.9.1/i486-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64  -Wall -g -rdynamic -fPIC -fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses  -fPIC  -fno-strict-aliasing -g  -o v8_template.o -c v8_template.cpp
In file included from v8_template.cpp:1:
rr.h:30: error: ‘StackTrace’ is not a member of ‘v8’
rr.h:30: error: ‘StackTrace’ is not a member of ‘v8’
rr.h:30: error: template argument 1 is invalid
rr.h:31: error: ‘StackFrame’ is not a member of ‘v8’
rr.h:31: error: ‘StackFrame’ is not a member of ‘v8’
rr.h:31: error: template argument 1 is invalid
v8_template.cpp: In function ‘VALUE<unnamed>::Obj::SetNamedPropertyHandler(VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)’:
v8_template.cpp:254: error: invalid conversion from ‘v8::Handle<v8::Integer> (*)(v8::Local<v8::String>, const v8::AccessorInfo&)’ to ‘v8::Handle<v8::Boolean> (*)(v8::Local<v8::String>, const v8::AccessorInfo&)’
v8_template.cpp:254: error:   initializing argument 3 of ‘void v8::ObjectTemplate::SetNamedPropertyHandler(v8::Handle<v8::Value> (*)(v8::Local<v8::String>, const v8::AccessorInfo&), v8::Handle<v8::Value> (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::AccessorInfo&), v8::Handle<v8::Boolean> (*)(v8::Local<v8::String>, const v8::AccessorInfo&), v8::Handle<v8::Boolean> (*)(v8::Local<v8::String>, const v8::AccessorInfo&), v8::Handle<v8::Array> (*)(const v8::AccessorInfo&), v8::Handle<v8::Value>)’
v8_template.cpp: In function ‘VALUE<unnamed>::Obj::SetIndexedPropertyHandler(VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)’:
v8_template.cpp:271: error: invalid conversion from ‘v8::Handle<v8::Integer> (*)(uint32_t, const v8::AccessorInfo&)’ to ‘v8::Handle<v8::Boolean> (*)(uint32_t, const v8::AccessorInfo&)’
v8_template.cpp:271: error:   initializing argument 3 of ‘void v8::ObjectTemplate::SetIndexedPropertyHandler(v8::Handle<v8::Value> (*)(uint32_t, const v8::AccessorInfo&), v8::Handle<v8::Value> (*)(uint32_t, v8::Local<v8::Value>, const v8::AccessorInfo&), v8::Handle<v8::Boolean> (*)(uint32_t, const v8::AccessorInfo&), v8::Handle<v8::Boolean> (*)(uint32_t, const v8::AccessorInfo&), v8::Handle<v8::Array> (*)(const v8::AccessorInfo&), v8::Handle<v8::Value>)’
make: *** [v8_template.o] Error 1
    
por segi 30.06.2011 / 14:26

1 resposta

1

Parece que os cabeçalhos de desenvolvimento da v8 estão faltando. Tente instalar o pacote libv8-dev,

  

sudo apt-get install libv8-dev .

    
por Egil 30.06.2011 / 14:29