ok, IT WORKS!!!! continuing this crazy session of installing opencl in ubuntu, I finally installed and linked the opencl components required by M..... copied all M files to a fresh directory and recompiled it ... it works!!!! you would be better off installing debian on your windows with debian-wibu package.
>installed wibu in win7, had to click continue 30 times to do it.
>tried 1 hour to install new theme, still didnt get a proper one
>had to learn 20 linux commands, like sudo makes any command a root etc. drag and drop file browser locations to terminal saves alot of time, also copy paste to terminal.
You need install : mesa.common.dev, freeglut3, nvidia common dev, and nvidia cuda toolkit and 1 2 others.
link toolkit to main library like this:
http://stackoverflow.com/questions/7542808/what-is-needed-to-compile-opencl-on-ubuntu-and-by-extension-opencl-period/1) The CUDA toolkit will have included the OpenCL headers (Listed at
http://www.khronos.org/registry/cl/), likely they are in the directory /usr/local/cuda/include/CL. To make these headers available system wide, you should link this directory into /usr/include/, such that they may be accessed as /usr/include/CL/[headerfilename]. Instead of creating a symlink, you could add /usr/local/cuda/include to your C_INCLUDE_PATH and CPLUS_INCLUDE_PATH environment variables, but this would last for only currest session.
.. answer, run nautilus explorer as root "sudo nautilus" navigate to usr/include/cuda/lib/CL or similar, middle button mouse drag it to the desktop and choose make link, and then copy paste that link to usr/include using root priveledges.
instull and update nvidia stuff with these commands:
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current
So it works! estimated time to install everything from windows without partition etc, could be about 2/4 hours depending on ubuntu performing like a ***&*