16:52 - Saturday, 19 April 2014

Less CSS Compiler Install

I wanted to install less compiler to my computer but when I ran following command:

sudo gem install less

And make command stopped the following error:

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 -lv8collect2: ld returned 1 exit statusmake: *** [v8.so] Error 1

Which package missing? Or what is the problem ?
Thanks the answer!

sudo apt-get install libv8-dev 

It was good package but now I received the following error:

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.cppIn 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 invalidrr.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 invalidv8_template.cpp: In function ‘VALUE::Obj::SetNamedPropertyHandler(VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)’:v8_template.cpp:254: error: invalid conversion from ‘v8::Handle (*)(v8::Local, const v8::AccessorInfo&)’ to ‘v8::Handle (*)(v8::Local, const v8::AccessorInfo&)’v8_template.cpp:254: error:   initializing argument 3 of ‘void v8::ObjectTemplate::SetNamedPropertyHandler(v8::Handle (*)(v8::Local, const v8::AccessorInfo&), v8::Handle (*)(v8::Local, v8::Local, const v8::AccessorInfo&), v8::Handle (*)(v8::Local, const v8::AccessorInfo&), v8::Handle (*)(v8::Local, const v8::AccessorInfo&), v8::Handle (*)(const v8::AccessorInfo&), v8::Handle)’v8_template.cpp: In function ‘VALUE::Obj::SetIndexedPropertyHandler(VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)’:v8_template.cpp:271: error: invalid conversion from ‘v8::Handle (*)(uint32_t, const v8::AccessorInfo&)’ to ‘v8::Handle (*)(uint32_t, const v8::AccessorInfo&)’v8_template.cpp:271: error:   initializing argument 3 of ‘void v8::ObjectTemplate::SetIndexedPropertyHandler(v8::Handle (*)(uint32_t, const v8::AccessorInfo&), v8::Handle (*)(uint32_t, v8::Local, const v8::AccessorInfo&), v8::Handle (*)(uint32_t, const v8::AccessorInfo&), v8::Handle (*)(uint32_t, const v8::AccessorInfo&), v8::Handle (*)(const v8::AccessorInfo&), v8::Handle)’make: *** [v8_template.o] Error 1

It sounds like the v8 development headers are missing. Try installing the libv8-dev package,

sudo apt-get install libv8-dev.

Share

Advertisement

Comment