|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
Linux的常用命令find,察看man文档,初学者一定会觉得太复杂而不原意用,但是你一旦学会就爱不释手。
筹办事情
一个全新安装的ubuntu13.10体系
下载Mono源代码并编译- nike@NIKE-PC:~$lsDesktopDownloadsMusicPublicVideosDocumentsexamples.desktopPicturesTemplatesnike@NIKE-PC:~$mkdirsrcnike@NIKE-PC:~$cdsrcnike@NIKE-PC:~/src$wgethttp://download.mono-project.com/sources/mono/mono-3.2.8.tar.bz2--2014-03-2721:24:30--http://download.mono-project.com/sources/mono/mono-3.2.8.tar.bz2Resolvingdownload.mono-project.com(download.mono-project.com)...54.240.168.102,54.230.156.158,54.230.157.116,...Connectingtodownload.mono-project.com(download.mono-project.com)|54.240.168.102|:80...connected.HTTPrequestsent,awaitingresponse...200OKLength:77515552(74M)[application/x-bzip2]Savingto:‘mono-3.2.8.tar.bz2100%[======================================>]77,515,552189K/sin10m50snike@NIKE-PC:~/src$lsmono-3.2.8.tar.bz2nike@NIKE-PC:~/src$tar-xjfmono-3.2.8.tar.bz2nike@NIKE-PC:~/src$cdmono-3.2.8/nike@NIKE-PC:~/src/mono-3.2.8$./configure--prefix=/opt/mono-3.2.8checkingbuildsystemtype...i686-pc-linux-gnucheckinghostsystemtype...i686-pc-linux-gnucheckingtargetsystemtype...i686-pc-linux-gnucheckingforaBSD-compatibleinstall.../usr/bin/install-ccheckingwhetherbuildenvironmentissane...yescheckingforathread-safemkdir-p.../bin/mkdir-pcheckingforgawk...nocheckingformawk...mawkcheckingwhethermakesets$(MAKE)...yescheckinghowtocreateaustartararchive...gnutarcheckingwhethertoenablemaintainer-specificportionsofMakefiles...nocheckingwhetherln-sworks...yescheckingwhethermakesupportsnestedvariables...yescheckinghostplatformcharacteristics...okcheckingforgcc...gcccheckingforgcc...(cached)gcccheckingwhethertheCcompilerworks...yescheckingforCcompilerdefaultoutputfilename...a.outcheckingforsuffixofexecutables...checkingwhetherwearecrosscompiling...nocheckingforsuffixofobjectfiles...ocheckingwhetherweareusingtheGNUCcompiler...yescheckingwhethergccaccepts-g...yescheckingforgccoptiontoacceptISOC89...noneneededcheckingforstyleofincludeusedbymake...GNUcheckingdependencystyleofgcc...gcc3checkingforg++...nocheckingwhetherweareusingtheGNUC++compiler...nocheckingwhetherg++accepts-g...nocheckingdependencystyleofg++...nonecheckingdependencystyleofgcc...gcc3checkingforgawk...(cached)mawkcheckingwhethergccandccunderstand-cand-otogether...yesconfigure:error:Youneedtoinstallg++
复制代码 由于没有安装g++而没法持续:- nike@NIKE-PC:~/src/mono-3.2.8$sudoapt-getinstallg++[sudo]passwordfornike:Readingpackagelists...DoneBuildingdependencytreeReadingstateinformation...DoneThefollowingextrapackageswillbeinstalled:cpp-4.8g++-4.8gcc-4.8gcc-4.8-baselibasan0libatomic1libgcc-4.8-devlibgcc1libgomp1libitm1libquadmath0libstdc++-4.8-devlibstdc++6Suggestedpackages:gcc-4.8-localesg++-multilibg++-4.8-multilibgcc-4.8-doclibstdc++6-4.8-dbggcc-4.8-multiliblibmudflap0-4.8-devlibgcc1-dbglibgomp1-dbglibitm1-dbglibatomic1-dbglibasan0-dbglibtsan0-dbglibbacktrace1-dbglibquadmath0-dbglibmudflap0-dbglibstdc++-4.8-docThefollowingNEWpackageswillbeinstalled:g++g++-4.8libstdc++-4.8-devThefollowingpackageswillbeupgraded:cpp-4.8gcc-4.8gcc-4.8-baselibasan0libatomic1libgcc-4.8-devlibgcc1libgomp1libitm1libquadmath0libstdc++611upgraded,3newlyinstalled,0toremoveand275notupgraded.Needtoget25.9MBofarchives.Afterthisoperation,28.2MBofadditionaldiskspacewillbeused.Doyouwanttocontinue[Y/n]?==============>省略了良多<==============
复制代码 从头初始化mono安拆卸置文件:- nike@NIKE-PC:~/src/mono-3.2.8$./configure--prefix=/opt/mono-3.2.8==============>省略了良多<==============Engine:GC:sgenandbundledBoehmGCwithtypedGCandparallelmarkTLS:__threadSIGALTSTACK:yesEngine:BuildingandusingtheJIToprofile:noBigArrays:noDTrace:noLLVMBackEnd:no(dynamicallyloaded:no)Libraries:.NET2.0/3.5:yes.NET4.0:yes.NET4.5:yesMonoDroid:noMonoTouch:noJNIsupport:IKVMNativelibgdiplus:assumedtobeinstalledzlib:nike@NIKE-PC:~/src/mono-3.2.8$
复制代码 ./configure经由过程。
编译Mono源代码- nike@NIKE-PC:~/src/mono-3.2.8$make==============>冗长的编译~<==============nike@NIKE-PC:~/src/mono-3.2.8$sudomakeinstall==============>省略了良多<==============
复制代码 安装乐成。
设置PATH情况变量
- nike@NIKE-PC:~/src/mono-3.2.8$cd~nike@NIKE-PC:~$vim.bashrc
复制代码 在该文件开端追加以下语句:- if[-d/opt/mono-3.2.8/bin];thenexportPATH=/opt/mono-3.2.8/bin:$PATHfi
复制代码 然后:- nike@NIKE-PC:~$..bashrcnike@NIKE-PC:~$echo$PATH/opt/mono-3.2.8/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamesnike@NIKE-PC:~$
复制代码 考证Mono是不是安装准确- nike@NIKE-PC:~$mono--versionMonoJITcompilerversion3.2.8(tarball2014年03月27日木曜日21:55:30CST)Copyright(C)2002-2014Novell,Inc,XamarinIncandContributors.www.mono-project.comTLS:__threadSIGSEGV:altstackNotifications:epollArchitecture:x86Disabled:noneMisc:softdebugLLVM:supported,notenabled.GC:sgennike@NIKE-PC:~$dmcs--versionMonoC#compilerversion3.2.8.0nike@NIKE-PC:~$
复制代码 安装乐成。
使用gcc或g++进行编译,使用gdb进行调试; |
|