I have nodejs ,npm and node-gyp installed on my machine . Also I have installed windows-build-tools as a prerequisite for scrypt package. But when I do a npm install scrypt , I get the following error. How to resolve this?
The complete error message is:-
$ npm install scrypt --save
> scrypt#6.0.3 preinstall C:\Users\Benyah\node_modules\scrypt
> node node-scrypt-preinstall.js
> scrypt#6.0.3 install C:\Users\Benyah\node_modules\scrypt
> node-gyp rebuild
C:\Users\Benyah\node_modules\scrypt>if not defined npm_config_node_gyp (node "C\Users\Benyah\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\nde-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node C:\Users\Benyah\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\ode-gyp.js" rebuild )
Warning: Missing input files:
C:\Users\Benyah\node_modules\scrypt\build\..\scrypt\win\include\config.h
Building the projects in this solution one at a time. To enable parallel build,please add the "/m" switch.
Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
The system cannot find the file specified.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targts(356,5): error MSB6006: "CL.exe" exited with code -1073741701. [C:\Users\Benyh\node_modules\scrypt\build\copied_files.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targts(356,5): error MSB6006: "CL.exe" exited with code -1073741701. [C:\Users\Benyh\node_modules\scrypt\build\scrypt_wrapper.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` faied with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Benyah\AppData\Roaming\npm\ode_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Benyah\\AppDta\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" rebuild"
gyp ERR! cwd C:\Users\Benyah\node_modules\scrypt
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Benyah\packag.json'
npm WARN Benyah No description
npm WARN Benyah No repository field.
npm WARN Benyah No README data
npm WARN Benyah No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional loging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Benyah\AppData\Roaming\npm-cache\_logs\2018-01-05T10_00_1_241Z-debug.log
Related
I am a bit new to nodejs and I am trying to connect database via nodejs. For connecting I am installing the JDBC but it throws an error like below. Can you help for this?
C:\myDrive\work\samples\nodeapis\simpleapi>npm i --save jdbc
> java#0.9.1 install `enter code here`C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
> node-gyp rebuild
C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java>if not defined npm_config_node_gyp (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\myDrive\apps\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node.exe" "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\myDrive\work\samples\nodeapis\simpleapi\package.json'
npm WARN simpleapi No description
npm WARN simpleapi No repository field.
npm WARN simpleapi No README data
npm WARN simpleapi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! java#0.9.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java#0.9.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\<user>\AppData\Roaming\npm-cache\_logs\2018-12-13T07_30_29_595Z-debug.log
After I have installed the lower version of python 2.7.0 this error has gone.
but the below error I got
C:\myDrive\work\samples\nodeapis\simpleapi>npm i --save jdbc
> java#0.9.1 install C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
> node-gyp rebuild
C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java>if not defined npm_config_node_gyp (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node.exe" "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\myDrive\work\samples\nodeapis\simpleapi\package.json'
npm WARN simpleapi No description
npm WARN simpleapi No repository field.
npm WARN simpleapi No README data
npm WARN simpleapi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! java#0.9.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java#0.9.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\<user>\AppData\Roaming\npm-cache\_logs\2018-12-13T08_15_21_567Z-debug.log
Thanks in advance
I think you need to install node-gyp and then try again, it is a cross-platform command line tool written in nodejs for compiling native addon modules.
I already tried installing it with the official Wiki documentation. No luck for me. I installed GTK and node-gyp too. I am not sure what's wrong.
Here is my error message.
C:\Users\User\Desktop\is vertical>npm i canvas
> canvas#1.6.10 install C:\Users\User\node_modules\canvas
> node-gyp rebuild
C:\Users\User\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
ools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 bui
ld tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Retarget solution". [C:\Users\User\node_modules\canvas\build\canvas.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\node_modules\canvas
gyp ERR! node -v v9.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\User\package.json'
npm WARN User No description
npm WARN User No repository field.
npm WARN User No README data
npm WARN User No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! canvas#1.6.10 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas#1.6.10 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2018-04-08T22_35_58_874Z-debug.log
I followed every thing on this page:
https://medium.com/#PrateeshNanada/steps-to-install-testrpc-in-windows-10-96989a6cd594
Except step number 5 where my Node.js version is 8.10.0 instead of 8.10.2 which iI dont think is a big difference.
I have installed VS 2017 Community Edition, Windows 10 SDK, OpenSSL, npm-gyp.
I have run the command npm install --global --production windows-build-tools to install all the latest build tools and still get this error. Help is needed.
npm WARN deprecated fs-promise#2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz#1.0.7: WARNING tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
> scrypt#6.0.3 preinstall C:\Windows\System32\node_modules\scrypt
> node node-scrypt-preinstall.js
> scrypt#6.0.3 install C:\Windows\System32\node_modules\scrypt
> node-gyp rebuild
C:\Windows\System32\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Windows\System32\node_modules\scrypt\build\..\scrypt\win\include\config.h
MSBUILD : error MSB1009: Project file does not exist.
Switch: build/binding.sln
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\System32\node_modules\scrypt
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm WARN System32 No description
npm WARN System32 No repository field.
npm WARN System32 No README data
npm WARN System32 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Syed\AppData\Roaming\npm-cache\_logs\2018-03-11T17_47_58_702Z-debug.log
It appears to me that node-gyp rebuild is failing on my machine. Why is that?
Did you try running the command
npm install --global --production windows-build-tools
in powershell?
I had the same issue and running the command in powershell worked.
When I attempt to install the zerorpc library using npm as follows:
npm install zerorpc
I get the following error:
C:\Users\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack>node "C:\Program Files (x86)\nodejs\node
_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
object.cpp
objectc.c
unpack.c
vrefbuffer.c
zone.c
version.c
libmsgpack.vcxproj -> C:\Users\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack\build\Release\\
libmsgpack.lib
msgpack.cc
..\src\msgpack.cc(181): error C2466: cannot allocate an array of constant size 0 [C:\Users\Jeff\AppData\Roaming\npm
\node_modules\zerorpc\node_modules\msgpack\build\msgpackBinding.vcxproj]
..\src\msgpack.cc(181): error C2440: 'initializing' : cannot convert from 'int' to 'v8::Handle<v8::Value>' [C:\User
s\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack\build\msgpackBinding.vcxproj]
Constructor for class 'v8::Handle<v8::Value>' is declared 'explicit'
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\
build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.j
s" "rebuild"
gyp ERR! cwd C:\Users\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
And at the end of the installation process, I get the following errors:
npm ERR! msgpack#0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the msgpack#0.1.8 install script.
npm ERR! This is most likely a problem with the msgpack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls msgpack
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\
bin\\npm-cli.js" "install" "-g" "zerorpc"
npm ERR! cwd C:\node\pythontest
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\node\pythontest\npm-debug.log
npm ERR! not ok code 0
I'm running a clean install of Node.js on Windows 7 (x64).
Has anyone encountered this error before, and if so, how should I go about fixing it?
Thanks!
Edit:
When I install msgpack separately as follows:
npm install msgpack
It installs successfully:
C:\node\pythontest\node_modules\msgpack>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..
\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
gcc_atomic.cpp
object.cpp
objectc.c
unpack.c
vrefbuffer.c
zone.c
version.c
libmsgpack.vcxproj -> C:\node\pythontest\node_modules\msgpack\build\Release\\libmsgpack.lib
msgpack.cc
C:\Users\Jeff\.node-gyp\0.10.31\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Pe
rsistent<v8::Object> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' [C:\node\pythontest\node_modules\msgp
ack\build\msgpackBinding.vcxproj]
C:\Users\Jeff\.node-gyp\0.10.31\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Pe
rsistent<v8::FunctionTemplate> v8::Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' [C:\nod
e\pythontest\node_modules\msgpack\build\msgpackBinding.vcxproj]
Creating library C:\node\pythontest\node_modules\msgpack\build\Release\msgpackBinding.lib and object C:\node\p
ythontest\node_modules\msgpack\build\Release\msgpackBinding.exp
Generating code
c:\node\pythontest\node_modules\msgpack\src\msgpack.cc(360): warning C4715: 'unpack' : not all control paths return
a value [C:\node\pythontest\node_modules\msgpack\build\msgpackBinding.vcxproj]
Finished generating code
msgpackBinding.vcxproj -> C:\node\pythontest\node_modules\msgpack\build\Release\\msgpackBinding.node
msgpack#0.2.4 node_modules\msgpack
└── nan#1.0.0
I have installed the nodejs-legacy, and it was no problem.
However, when I try do run script/build, I get the following error:
npm WARN prefer global npm#1.4.10 should be installed with -g
npm WARN package.json csslint#0.9.10 No README.md file found!
npm WARN package.json highlight.js#7.3.0 No README.md file found!
make: g++: Command not found
make: *** [Release/obj.target/runas/src/main.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.11.0-12-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /var/www/atom/build/node_modules/runas
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! runas#0.5.4 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the runas#0.5.4 install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls runas
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "--userconfig=/var/www/atom/.npmrc" "install" "--quiet"
npm ERR! cwd /var/www/atom/build
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm WARN prefer global grunt-cli#0.1.13 should be installed with -g
make: g++: Command not found
make: *** [Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/bytereader.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.11.0-12-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /var/www/atom/build/node_modules/minidump
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm WARN package.json uid2#0.0.3 No README.md file found!
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/atom/build/npm-debug.log
npm ERR! not ok code 0
Does this error occour because I've installed nodejs-legacy? How should I do?
EDIT:
I've forgott to install g++, and when I try to run script/build, I get this looong message:
http://pastebin.com/vBpxrE7A
From your log it looks like node-gyp problem described here - I suggest paying special attention to this answer.
Generally people suggest reinstalling node-gyp (using repositories, npm or sources) and/or reverting to Python 2.6 - it seems that node-gyp depends on this Python version and reverting to 2.6 is the approach pointed out in answer I quoted above.
Well, I know it's late in SO terms (nearly two weeks!), but hope it will be of some use :)