官术网_书友最值得收藏!

Setting up GCC, Eclipse IDE, and graphical dependencies (Linux)

Open up a Terminal from the Ubuntu desktop (CtrlAltT). We first update the apt repository as follows:

sudo apt-get update

Now we can install everything we need for CUDA with one additional line:

sudo apt-get install build-essential binutils gdb eclipse-cdt

Here, build-essential is the package with the gcc and g++ compilers, and other utilities such as make; binutils has some generally useful utilities, such as the LD linker, gdb is the debugger, and Eclipse is the IDE that we will be using.

Let's also install a few additional dependencies that will allow us to run some of the graphical (OpenGL) demos included with the CUDA Toolkit with this line:

sudo apt-get install freeglut3 freeglut3-dev libxi-dev libxmu-dev

Now you should be good to go to install the CUDA Toolkit.

主站蜘蛛池模板: 遵义县| 祁阳县| 乐昌市| 财经| 宜都市| 商城县| 化隆| 阿瓦提县| 托克逊县| 京山县| 固原市| 南丹县| 汶上县| 方城县| 邵武市| 乌鲁木齐市| 崇仁县| 淮南市| 宁波市| 西华县| 吉木萨尔县| 衡东县| 鹤庆县| 石首市| 富民县| 突泉县| 美姑县| 龙门县| 黎平县| 梁平县| 辽阳县| 临泽县| 青海省| 华宁县| 仪陇县| 克什克腾旗| 南城县| 宁明县| 隆子县| 五峰| 长泰县|