如何根据node-sass部署到nodejitsu?

时间:2014-12-07 12:53:54

标签: node.js compilation nodejitsu node-sass

我正在尝试将我的ChucK Demos应用程序部署到Nodejitsu,但由于node-sass 1.2.3未在其平台(SunOS)上进行编译而陷入困境。我能以某种方式解决这个问题吗?

错误如下所示:

./src/libsass/json.cpp:159:18: error: conflicting declaration 'typedef uint32_t uchar_t'
/usr/include/sys/types.h:98:23: error: 'uchar_t' has a previous declaration as 'typedef unsigned char uchar_t'
../src/libsass/json.cpp: In function 'int utf8_write_char(uchar_t, char*)':
../src/libsass/json.cpp:299:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
../src/libsass/json.cpp:299:3: warning: comparison is always false due to limited range of data type [-Wtype-limits]
../src/libsass/json.cpp:299:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
../src/libsass/json.cpp:305:25: warning: comparison is always true due to limited range of data type [-Wtype-limits]
../src/libsass/json.cpp:310:25: warning: comparison is always true due to limited range of data type [-Wtype-limits]
../src/libsass/json.cpp: In function 'void to_surrogate_pair(uchar_t, uint16_t*, uint16_t*)':
../src/libsass/json.cpp:351:3: warning: comparison is always false due to limited range of data type [-Wtype-limits]
../src/libsass/json.cpp:351:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
../src/libsass/json.cpp: In function 'void emit_string(SB*, const char*)':
../src/libsass/json.cpp:1214:42: error: cannot convert 'uint32_t* {aka unsigned int*}' to 'uchar_t* {aka unsigned char*}' for argument '2' to 'int utf8_read_char(const char*, uchar_t*)

1 个答案:

答案 0 :(得分:0)

显然,node-sass此时不会在Nodejitsu上编译,因为GCC 4.6安装在Nodejitsu上,而node-sass需要GCC 4.7 +。

相关问题