ubuntu搭建以太坊环境
㈠ 为什么很多人用 Ubuntu 作为搭建开发环境的平台
Ubuntu有丰富的软件源,再加上被Google等官方支持,所以用的人多。
但是我用OS X作为搭建开发环境,如果需要Linux系的也会用Debian而不是Ubuntu。
㈡ 如何在ubuntu中搭建交叉编译环境toolchain
1.安装交叉编译环境 sudo apt-get install gcc g++ libcc1 libg++ make gdb
2.安装交叉编译器 f
tp:
//ftp.
arm.linux.org.uk/pub/armlinux/toolchain/ 下载 cross -3.2.tar.bz2或者懒得去找干脆
wget f
tp://ftp.
arm.linux.org.uk/pub/armlinux/toolchain/ cross -3.2.tar.bz2
解压
sudo tar jxvf /home/zhaifang/cross -3.2.tar.bz2
sudo mv /home/zhaifang/usr/local/arm /usr/local
3.交叉编译器加入路径 sudo vi /etc/bash.bashrc后面加入
if [ -d /usr/local/arm ] ; then
PATH=/usr/local/arm/bin:'${PATH}'
fi
4.使环境生效 #source /etc/profile
5.检查 echo $PATH 出现/usr/local/arm/bin说明成功了
6.测试 arm-linux-gcc -v
㈢ Ubuntu下如何创建虚拟环境及使用
步骤如下:一、准备工作:
1、下载安装VMware Workstation并安装。
2、下载一个Ubuntu系统镜像。
二、新建虚拟机:
1、打开VMware,新建一个虚拟机。搜索
2、选择“典型(推荐)(T)”,点“下一步”。
3、选择“稍后安装操作系统”,点“下一步”。
4、选择Ubuntu系统版本,点“下一步”。
5、设置“虚拟机名称”跟虚拟机的存放“位置”,点“下一步”。
6、设置“最大磁盘大小”,选择“将虚拟磁盘存储为单个文件”,点“下一步”。
三、安装:
1、在CD/DVD处加载第一步下载的Ubuntu系统镜像文件。
2、点击虚拟机的电源键,然后按照步骤提示进行安装,完成后即可使用虚拟机了。
㈣ 怎样在ubuntu环境下搭建51单片机的开发环境
ubuntu下开发单片机的方式、方法和软件很多呀
如果是51单片机,用SDCC就很好了。
烧写芯片的软件与使用的具体芯片有关,也有很多,网上能找到。例如就连国内大学生用得最多的STC89C51/52也可以使用一个叫做gSTCISP的软件在ubuntu下烧写。
㈤ 为什么很多人用 Ubuntu 作为搭建开发环境的平台
Ubuntu的支持确实比较好,我的笔记本裸机安装Linux+Windows双系统的时候试了OpenSUSE,Debian,CentOS,Fedora和Ubuntu,除了Ubuntu和Debian其他的发行版安装后运行一段时间后就会出Kernel Panic,具体原因不明,貌似是硬盘问题,而Debian直接在安装过程中就报错了,只有Ubuntu坚持到了最后。
对安卓来说,Google推荐用 ubuntu,你可以在 google 官方的 android developer 网站看到相关说明,Google 自己也是在 ubuntu 下测试的其 Linux 版本开发环境,所以当然要用 ubuntu。有了 google 的支持,ubuntu 想不发展都难。
至于 openwrt 为什么用 ubuntu,自然还是因为方便。redhat 其实对新手来说没法比。很多 ubuntu 下面一个命令能搞定的事情你在 redhat 里面要查一堆资料看一堆文档才知道该怎么可以实现。
㈥ 如何在ubuntu 搭建虚拟环境
在FreeBsd上搭建nginx + php环境,虽然难度不小,可是由于使用历史的问题,网络关于这方面的经验文章还是比较多的,随着Ubuntu的逐渐推广,研究下如何在ubuntu下搭建nginx + php环境还是有必要的,方便有这方面需求的朋友,并且可以推动Ubuntu的普及,其实,在Ubuntu下搭建nginx + php环境比FreeBsd下速度要快得多,因为在FreeBsd我是用ports方式安装,需要编译,Ubuntu下直接apt-get install 的方式安装,速度很快,下面就来开始安装吧!1,安装nginx,执行以下命令,很快完成,不过目前apg-get方式安装默认是0;index index$fastcgi_script_name;include /etc/nginx/fastcgi_params;}} 2,安装php-cgi模块执行sudo apt-get install php5-cgi配置文件默认安装位置:php-cgi: /usr/bin/php-cgiphp5-cgi: /usr/bin/php5-cgicgi config: /usr/bin/cgi/php.ini 修改php.ini文件的cgi.fix_pathinfo数据为1,默认为0 cgi.fix_pathinfo=1; 这样php-cgi方能正常使用SCRIPT_FILENAME这个变量3,安装spawn-fcgi spawn-fcgi是lighttpd的一个用来控制php-cgi的工具.如果系统没有安装GCC编译环境,刚需要在安装lighttpd之前要安装build-essential工具包,执行以下命令 sudo apt-get install build-essentialwget /download/lighttpd-1.4.19.tar.gztar -xvf lighttpd-1.4.19.tar.gzcd lighttpd-1.4.19/sudo apt-get install libpcre3-dev./configure –without-zlib –without-bzip2makesudo cp src/spawn-fcgi /usr/local/bin/spawn-fcgi 这样cgi控制器就安装完成.4.启动测试系统.启动fast_cgi:spawn-fcgi -a 127.0.0.1 -p 9000 -C 5 -u www-data -g www-data -f /usr/bin/php-cgi注意:ip,端口与nginx服务器中的cgi-pass要对应. -C表示打开几个cgi进程启动nginxsudo /etc/init.d/nginx start好了,如果没有出错信息,则说明配置成功了,现在写个phpinfo测试下吧!最后,附上我的/etc/nginx/sites-enable/default的配置文件,此配置文件启用了rewrite功能server {listen 80;server_name localhost;access_log /var/log/nginx/localhost.access.log;location / {root /var/www/nginx-default;index index.php;if (-f $request_filename/index.html){rewrite (.*) $1/index.html break;}if (-f $request_filename/index.php){rewrite (.*) $1/index.php;}if (!-f $request_filename){rewrite (.*) /index.php;}} #error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location = /50x.html {root /var/www/nginx-default;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ .php$ {#proxy_pass 127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000#location ~ .php$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME /var/www/nginx-default$fastcgi_script_name;include /etc/nginx/fastcgi_params;}# deny access to .htaccess files, if Apache’s document root# concurs with nginx’s one##location ~ /.ht {#deny all;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {#listen 8000;#listen somename:8080;#server_name somename alias another.alias;#location / {#root html;#index index.html index.htm;#}#}# HTTPS server##server {#listen 443;#server_name localhost;#ssl on;#ssl_certificate cert.pem;#ssl_certificate_key cert.key;#ssl_session_timeout 5m;#ssl_protocols SSLv2 SSLv3 TLSv1;#ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;#ssl_prefer_server_ciphers on;#location / {#root html;#index index.html index.htm;#}#}怎么样?是不是快速又方便,快试试吧,打算做WordPress的朋友可以试试哦,nginx + php效率可比Apache + php高哦!
㈦ ubuntu 16.04 怎么搭建c/c++开发环境
默认就有,gcc命令行编译,再结合makefile以及你喜欢的编辑器,搞定。
㈧ ubuntu 16.04 怎么搭建go环境
2、解压和配置go环境
$ tar xvf go1.6.linux-amd64.tar.gz11
会生成一个Go目录
$ sudo chown -R root:root ./go
$ sudo mv go /usr/local/1212
设置环境变量
$ sudo vim /etc/profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/work
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
$ sudo source /etc/profile1234512345
3、测试 go 环境
㈨ 你的ubuntu开发环境搭建成功了么,求指教
只会jdk和android sdk