Wednesday, 28 May 2014

Windows vcvarsall problem

This is taken from: stackoverflow answer: building-lxml-for-python-2-7-on-windows

There's def find_vcvarsall(version): function (guess what, it looks for vcvarsall.bat) in distutils with the following comment

At first it tries to find the productdir of VS 2008 in the registry. If that fails it falls back to the VS90COMNTOOLS env var.

If you're not using VS 2008 then you have neither the registry key nor suitable environment variable and that's why distutils can't find vcvarsall.bat file. It does not check if the bat file is reachable through the PATH environment variable.

The solution is to define VS90COMNTOOLS variable to point to Tools directory of Visual Studio.

That being said take a look at 11.4. distutils.msvccompiler — Microsoft Compiler section in Python's docs which states

Typically, extension modules need to be compiled with the same compiler that was used to compile Python.

Martin v. Loewis in the email titled Download Visual Studio Express 2008 now on python-list mailing list states the same

Python 2.6, 2.7, and 3.1 are all built with that release (i.e. 2008). Because of another long tradition, Python extension modules must be built with the same compiler version (more specifically, CRT version) as Python itself. So to build extension modules for any of these releases, you need to have a copy of VS 2008 or VS 2008 Express.


Sunday, 18 May 2014

the path is not a valid path to the kali kernel headers vmware tools

using root


deb kali main contrib non-free



apt-get update

apt-get install build-essential linux-headers-$(uname -r)

ln -s /usr/src/linux-headers-$(uname -r)/include/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

now install vmware tools


Tuesday, 13 May 2014

install ruby 2.1 ubuntu

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng 

sudo apt-get update 

sudo apt-get install ruby2.1 

ruby2.1 -v 
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux-gnu]

using .ruby-version instead of .rvmrc

imagine you want to create a my ruby application called myrubyapp which will use ruby version 2.1.0

/bin/bash --login

rvm --create --ruby-version use ruby-2.1.0@myrubyapp

previously, you would have had a file .rvmrc, inside your myrubyapp dir, and in it would have been:

rvm use 2.1.0@myrubyapp

now, you would not create the .rvmrc file, and instead, create two files as follows: 

create a file named: .ruby-version:

in it, enter: 2.1.0

create a file named: .ruby-gemset:

in it, enter: myrubyapp

all done...

Monday, 12 May 2014

enable .net 4.5 IIS 8 Windows Server 2012

in powershell, enter:

dism.exe /Online /Enable-Feature /all /FeatureName:IIS-ASPNET45