当前位置: 首页 > 编程日记 > 正文

mono和monodevelop源码编译安装

之所以用源码编译的方式安装mono和monodevelop,是因为通过yum安装的mono不是最新版本,而且monodevelop不能建 asp.net MVC3的工程。

而且通过源码安装,可以进一步了解mono的各个项目之间的关系。

我用的Fedora16系统

1.  mono的源码编译安装

下载mono的最新源码,github上的源码编译时总是报找不到 gmcs.exe的错误。

我是在mono的官网上下的最新源码,地址:https://wrench.mono-project.com/Wrench/index.aspx?show_all=true

我下的是mono-2.11.3版

    # tar jxvf mono-2.11.3.tar.bz2
    # cd mono-2.11.3
    # ./autogen.sh --prefix=/usr/local
    # make
    # make install

需要注意的是用root用户来安装,否则有错误。

2. monodevelop的源码编译安装

monodevelop的源码编译安装相当曲折,搞了好几天。

有几点需要注意:

  1. 在monodevelop的官网上下最新源码,否则在./configure时会有找不到文件的错。
  2. 在安装monodevelop之前,要先安装一些依赖的包。(mono-addins,gtk-sharp,libglade2,gnome-sharp-2.0)
  3. 安装完后,需要设置LD_LIBRARY_PATH这个环境变量
  4. 用root用户来安装

安装monodevelop之前,按顺序安装一些依赖包:

(gtk-sharp  --> mono-addins --> libglade2--> gnome-sharp-2.0)

这些包在安装时也会遇到各种问题,下面是我安装时遇到的各种问题及解决方法,供参考。

以上的安装顺序是我总结出来的,没有试验过。

我安装时并不知道上面的安装顺序,是直接安装monodevelop,然后遇到问题再解决的。我的安装顺序如下:

1) 和mono同样的网址下载monodevelop的最新代码。

    # tar jxvf monodevelop-3.1.0.tar.bz2
    # cd monodevelop-3.1.0
    # ./configure --prefix=`pkg-config --variable=prefix mono`

此时报了一个错误如下:找不到 UNMANAGED_DEPENDENCIES_MONO

====================================================================
[root@localhost monodevelop-3.1.0]# ./configure --prefix=`pkg-config --variable=prefix mono`
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mono... /usr/local/bin/mono
checking for gmcs... /usr/local/bin/gmcs
checking for update-mime-database... /usr/bin/update-mime-database
checking for pkg-config... /usr/bin/pkg-config
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking pkg-config is at least version 0.9.0... yes
checking for UNMANAGED_DEPENDENCIES_MONO... no
configure: error: Please install mono version 2.8 or later to install MonoDevelop.
Please see http://www.mono-project.org/ to download latest mono sources or packages
====================================================================

通过以下命令修复此错误:

# export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig

参考网址: http://mono.1490590.n4.nabble.com/can-t-install-monodevelop-1-9-1-after-installed-mono-2-4-preview2-td1516079.html

再次执行:

# ./configure --prefix=`pkg-config --variable=prefix mono`

此时报了一个错误如下:找不到 mono-addins

====================================================================
checking for UNMANAGED_DEPENDENCIES_MONO... yes
checking for mono... /usr/local/bin/mono
checking for dmcs... /usr/local/bin/dmcs
checking for MONO_ADDINS... no
configure: error: Package requirements (mono-addins >= 0.6) were not met:
 
No package 'mono-addins' found
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
 
Alternatively, you may set the environment variables MONO_ADDINS_CFLAGS
and MONO_ADDINS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
====================================================================

下载mono-addins并安装,
下载地址: http://download.mono-project.com/sources/mono-addins/

    # tar jxvf mono-addins-0.6.2.tar.bz2
    # cd mono-addins-0.6.2
    # ./configure --prefix=/usr/local

此时报了一个错误如下:找不到 gtk-sharp-2.0

====================================================================
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pkg-config... /usr/bin/pkg-config
checking for a BSD-compatible install... /usr/bin/install -c
checking for gmcs... /usr/local/bin/gmcs
checking for gacutil... /usr/local/bin/gacutil
checking for al... /usr/local/bin/al
checking pkg-config is at least version 0.9.0... yes
checking for GTK_SHARP_20... configure: error: Package requirements (gtk-sharp-2.0) were not met:
 
No package 'gtk-sharp-2.0' found
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
 
Alternatively, you may set the environment variables GTK_SHARP_20_CFLAGS
and GTK_SHARP_20_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
====================================================================

下载gtk-sharp并安装,
下载地址: http://download.mono-project.com/sources/gtk-sharp212/

    # tar jxvf gtk-sharp-2.12.11.tar.bz2
    # cd gtk-sharp-2.12.11
    # ./configure --prefix=/usr/local
    # make
    # make install

gtk-sharp安装成功后,接着安装mono-addins

    # cd ../mono-addins-0.6.2
    # ./configure --prefix=/usr/local
    # make
    # make install

mono-addins安装成功后,接着安装monodevelop

    # cd ../monodevelop-3.1.0
    # ./configure --prefix=`pkg-config --variable=prefix mono`


此时报了一个错误如下:找不到 glade-sharp-2.0

====================================================================
[root@localhost monodevelop-3.1.0]# ./configure --prefix=`pkg-config --variable=prefix mono`
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mono... /usr/local/bin/mono
checking for gmcs... /usr/local/bin/gmcs
checking for update-mime-database... /usr/bin/update-mime-database
checking for pkg-config... /usr/bin/pkg-config
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking pkg-config is at least version 0.9.0... yes
checking for UNMANAGED_DEPENDENCIES_MONO... yes
checking for mono... /usr/local/bin/mono
checking for dmcs... /usr/local/bin/dmcs
checking for MONO_ADDINS... yes
checking for MONO_ADDINS_SETUP... yes
checking for MONO_ADDINS_GUI... yes
checking for GLIB_SHARP... yes
checking for GTK_SHARP... yes
checking for GLADE_SHARP... no
configure: error: Package requirements (glade-sharp-2.0 >= 2.12.8) were not met:
 
No package 'glade-sharp-2.0' found
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
 
Alternatively, you may set the environment variables GLADE_SHARP_CFLAGS
and GLADE_SHARP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
====================================================================

我不知道glade-sharp是什么包,先安装了libgdiplus

下载libgdiplus并安装,
下载地址: http://download.mono-project.com/sources/libgdiplus/

    # tar jxvf libgdiplus-2.10.9.tar.bz2
    # cd libgdiplus-2.10.9
    # ./configure --prefix=/usr/local
    # make

make时报了一个错误如下:

====================================================================
/usr/lib64/libglib-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [testgdi] Error 1
make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9'
make: *** [all] Error 2
====================================================================

解决办法如下:
(参考网址: http://www.sgvulcan.com/libgdiplus-2-10-9-build-fails-on-slacware-current64-2012-06/)
1. 运行./configure --prefix=/usr/local 之后,编辑 tests/Makefile 文件
2. 在Makefile文件130行位置,将   LIBS = -lpthread -lfontconfig
                            改为 LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11
3. 再次运行 make 即可

    # make
    # make install

接着安装monodevelop

    # cd ../monodevelop-3.1.0
    # ./configure --prefix=`pkg-config --variable=prefix mono`

仍然是错误:找不到 glade-sharp-2.0
利用yum 安装libglade2-devel,mono源码中没找到这个包
参考网址: http://mono.1490590.n4.nabble.com/Monodevelop-2-4-compilation-error-quot-No-package-glade-sharp-2-0-found-quot-td2268343.html

    # yum search libglade2
    # yum install libglade2-devel.x86_64

知道这个包的名称,也可以找相应的rpm来安装。

安装完libglade2后,重新安装 gtk-sharp2,安装方法上面已有。
接着,再次尝试安装 monodevelop:

    # ./configure --prefix=`pkg-config --variable=prefix mono`

此时报了一个错误如下:未安装gnome-sharp-2.0

====================================================================
[root@localhost monodevelop-3.1.0]# ./configure --prefix=`pkg-config --variable=prefix mono`
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mono... /usr/local/bin/mono
checking for gmcs... /usr/local/bin/gmcs
checking for update-mime-database... /usr/bin/update-mime-database
checking for pkg-config... /usr/bin/pkg-config
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking pkg-config is at least version 0.9.0... yes
checking for UNMANAGED_DEPENDENCIES_MONO... yes
checking for mono... /usr/local/bin/mono
checking for dmcs... /usr/local/bin/dmcs
checking for MONO_ADDINS... yes
checking for MONO_ADDINS_SETUP... yes
checking for MONO_ADDINS_GUI... yes
checking for GLIB_SHARP... yes
checking for GTK_SHARP... yes
checking for GLADE_SHARP... yes
checking for MONODOC... yes
checking for GNOME_SHARP... no
checking for GNOME_VFS_SHARP... no
checking for GCONF_SHARP... no
configure: error: Cannot enable GNOME platform without gnome-sharp-2.0
====================================================================

下载 gnome-sharp-2.0 并安装
下载地址: http://download.mono-project.com/sources/gnome-sharp220/

    # tar jxvf gnome-sharp-2.20.1.tar.bz2
    # cd gnome-sharp-2.20.1
    # ./configure --prefix=/usr/local

虽然没有报错,但是提示缺少3个assmely: art-sharp.dll,gnomevfs-sharp.dll,gnome-sharp.dll

====================================================================
Configuration summary
 
   * Installation prefix = /usr/local
   * C# compiler: /usr/local/bin/mcs  -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20
 
   Optional assemblies included in the build:
 
      * art-sharp.dll: no
      * gnomevfs-sharp.dll: no
      * gnome-sharp.dll: no
 
      NOTE: if any of the above say 'no' you may install the
            corresponding development packages for them, rerun
            autogen.sh to include them in the build.
 
            gnome-sharp.dll requires libgnomecanvas, libgnome,
            libgnomeui, libgnomeprint, libgnomeprintui, and
            libpanelapplet.
====================================================================

下面的两个dll对应如下库:(我是通过 yum找到的)
art-sharp.dll             : libart_lgpl-devel
gnomevfs-sharp.dll: gnome-vfs2-devel
最后一个根据上面的提示,(对应如下库)
gnome-sharp.dll   : libgnomecanvas, libgnome,
            libgnomeui, libgnomeprint, libgnomeprintui, and
            libpanelapplet(即gnome-panel-devel)

    # make

make 后,报出如下错误:

====================================================================
error CS0006: Metadata file `Mono.GetOptions.dll' could not be found
====================================================================

经过调查,
1.  原来是gnome-sharp版本太旧的原因,
    前面用的gnome-sharp-2.20.*用了Mono.GetOptions,更新至gnome-sharp-2.24.*
2.  注释掉gnome-sharp-2.24.1/sample/gnomevfs/Makefile中关于 Mono.GetOptions的内容
参考网址: http://www.puppeter.cn/?p=1126

下载地址:http://download.mono-project.com/sources/gnome-sharp2/

    # tar jxvf gnome-sharp-2.24.1.tar.bz2
    # cd gnome-sharp-2.24.0
    # ./configure --prefix=/usr/local
    # make
    # make install

接着,再次尝试安装 monodevelop:

    # ./configure --prefix=`pkg-config --variable=prefix mono`

此时会产生一些找不到 tests/UnitTests/Makefile.in 之类的错误。
经过调查,似乎是monodevelop 版本的问题,在monodevelop官网上下载最新的代码,
然后重新安装,终于安装成功。官网上最新版是3.0.3.4

    # tar jxvf monodevelop-3.0.3.4.tar.bz2
    # cd ../monodevelop-3.0.3.4
    # ./configure --prefix=`pkg-config --variable=prefix mono`
    # make
    # make install

安装完后,monodevep却无法启动,错误如下:

====================================================================
System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Syscall ---> System.DllNotFoundException: libMonoPosixHelper.so
  at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
  at Mono.Unix.Native.Syscall..cctor () [0x00032] in /home/wangyb/downloads/mono/mono-2.11.3/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs:2599 
  --- End of inner exception stack trace ---
  at MonoDevelop.Core.LoggingService.RedirectOutputToFileUnix (FilePath logDirectory, System.String logName) [0x0001f] in /home/wangyb/downloads/mono/monodevelop-3.0.3.4/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs:177 
  at MonoDevelop.Core.LoggingService.RedirectOutputToLogFile () [0x00046] in /home/wangyb/downloads/mono/monodevelop-3.0.3.4/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs:140 
FATAL ERROR [2012-07-29 07:59:49Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp, gnome-sharp or gtkhtml-sharp) may not be properly installed in the GAC.
System.TypeInitializationException: An exception was thrown by the type initializer for Gtk.Application ---> System.DllNotFoundException: glibsharpglue-2
  at (wrapper managed-to-native) GLib.Thread:glibsharp_g_thread_supported ()
  at GLib.Thread.get_Supported () [0x00000] in <filename unknown>:0 
  at Gtk.Application..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions options) [0x00085] in /home/wangyb/downloads/mono/monodevelop-3.0.3.4/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:95 
  at MonoDevelop.Ide.IdeStartup.Main (System.String[] args) [0x00058] in /home/wangyb/downloads/mono/monodevelop-3.0.3.4/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:503 
====================================================================

将LD_LIBRARY_PATH加入到启动的配置文件中,即 ~/.bashrc
内容如下:

    # add mono LD_LIBRARY_PATH
    export LD_LIBRARY_PATH=/usr/local/lib

终于启动成功,也有 aspnet-mvc3的工程了 ^_^

3. 总结

记录下安装过程的错误,也是方便以后遇到相同的错误可以知道怎么解决。

大家在安装过程中如果有什么新的问题,欢迎交流。



本文转自wang_yb博客园博客,原文链接:http://www.cnblogs.com/wang_yb/archive/2012/07/29/2613844.html,如需转载请自行联系原作者


相关文章:

sql数据库打包部署安装

目的&#xff1a;在客户端服务器上”附加数据库文件”。一).创建部署项目1. 打开VS.NET2005。2&#xff0e;在“文件”菜单上指向“新建项目”。3. 在“新建项目”对话框中&#xff0c;选择“项目类型”窗格中的”其他项目类型”中的“安装和部署”&#xff0c;然后选择“模板”…

2021潍坊市高考成绩查询,潍坊2021高考成绩排名榜单,潍坊各高中高考成绩喜报

2018高考成绩排名榜单,各高中高考成绩喜报尚未公布&#xff0c;请广大考生和家长参考往年公布情况&#xff01;潍坊四中潍坊四中今年高考再次实现新的历史突破&#xff1a;本科过线1429人&#xff0c;自招(重本)上线379人。高分段情况&#xff1a;理660分以上3人&#xff0c;65…

掌握哪些机器学习工具更受企业青睐?

参加 2018 AI开发者大会&#xff0c;请点击 大会官网 想成为一名优秀的开发工程师不是一件简单的事情&#xff0c;除了掌握工程师的通用技能以外&#xff0c;还需要掌握机器学习的各种算法&#xff0c;更需要掌握从开发到调试到优化等一系列能力&#xff0c;这些能力中的每一项…

从头编写 asp.net core 2.0 web api 基础框架 (5) EF CRUD

第1部分&#xff1a;http://www.cnblogs.com/cgzl/p/7637250.html 第2部分&#xff1a;http://www.cnblogs.com/cgzl/p/7640077.html 第3部分&#xff1a;http://www.cnblogs.com/cgzl/p/7652413.html 第4部分&#xff1a;http://www.cnblogs.com/cgzl/p/7661805.html Github源…

可以打游戏的计算机,还在用笔记本玩游戏?台式机才能给你极致享受

【PConline 游戏爆测】随着笔记本的性能越来越好&#xff0c;玩家对于游戏本的需求也越来越高了&#xff0c;再加上购买游戏笔记本并不需要额外购买显示器&#xff0c;就能享受到高刷新率高色域的屏幕&#xff0c;让玩家对于游戏台式机就更加不感兴趣了。但我想说的是&#xff…

如何把Windows安装的所有打印机列出来

[转]最近在论坛中不少网友问"如何把Windows安装的所有打印机列出来"&#xff0c;在下面的程序中我们将把系统中所安装的打印机用列表框列出来&#xff0c;同时为默认打印机设置缺省值。  在下面的程序中我们用到了两个主要的类&#xff0c;把所有的打印机列表出来用…

今晚直播 | 谷歌资深工程师手把手教你使用TensorFlow最新API构建学习模型

目前&#xff0c;深度学习的研究和应用大受追捧&#xff0c;各种开源的深度学习框架层出不穷。TensorFlow 作为目前最受欢迎的深度学习框架&#xff0c;已经在 GitHub 上获得了 112194 个 star&#xff0c;受欢迎程序可见一斑。但如何学习 TensorFlow&#xff0c;以及如何通过 …

澳洲计算机学,2020年澳洲计算机科学专业工作好找吗

就业前景&#xff1a;本专业毕业生就业前景十分良好。在完成学业后可以凭借其良好扎实的专业技能自主创业&#xff0c;或者进一步学习获得硕士或博士学位&#xff0c;也可进入计算机科学领域求职&#xff0c;如对先进计算机进行研发、编程、游戏设计、多媒体设计、网页设计、信…

AngularJS如何在filter中相互调用filter

调用方式如下&#xff1a; app.filter(filter2, function( $filter ) {return function( input) {return $filter(filter1)( input );}});本文转自黄聪博客园博客&#xff0c;原文链接&#xff1a;http://www.cnblogs.com/huangcong/p/6800107.html&#xff0c;如需转载请自行联…

腾讯AI Lab开源业内最大规模多标签图像数据集(附下载地址)

今日&#xff08;10 月 18 日&#xff09;&#xff0c;腾讯AI Lab宣布正式开源“Tencent ML-Images”项目。该项目由多标签图像数据集 ML-Images&#xff0c;以及业内目前同类深度学习模型中精度最高的深度残差网络 ResNet-101 构成。 该开源项目的主要内容包括&#xff1a; 1、…

two years in cnblogs.com

时间过得太快了&#xff0c;几乎还没什么感觉就在博客园扎寨两年了。回头瞄瞄这两年来的随笔觉得自己留下的都是毛皮&#xff0c;自己一直在调船头&#xff0c;几乎没有在哪一个专业中找到精髓&#xff0c;有点遗憾&#xff01;在博客园这两年最要感谢的人是dudu&#xff0c;他…

自动驾驶公司Momenta完成超2亿美元融资,估值超10亿美元

参加 2018 AI开发者大会&#xff0c;请点击 ↑↑↑10 月 17 日&#xff0c;自动驾驶公司 Momenta 对外公布完成新一轮融资&#xff0c;本轮融资主要来自行业领先的战略投资者和国资背景的投资者。本轮战略投资者包括腾讯等多家机构&#xff0c;国资背景投资者则包括招商局创投…

shell版俄罗斯方块

#!/bin/bash # Tetris Game # 10.21.2003 xhchen #颜色定义 cRed1 cGreen2 cYellow3 cBlue4 cFuchsia5 cCyan6 cWhite7 colorTable($cRed $cGreen $cYellow $cBlue $cFuchsia $cCyan $cWhite) #位置和大小 iLeft3 iTop2 ((iTrayLeft iLeft 2)) ((iTrayTop iTop 1)) ((iTray…

利用计算机进行机械设计属于什么,计算机技术机械设计应用

【摘要】近几年计算机技术的飞速发展使得它在各个领域中的地位越来越显著&#xff0c;应用越来越广泛&#xff0c;在机械设计过程中也逐渐地引入了计算机技术。在计算机技术中有一种单独的辅助设计技术用来辅助各种设计工作&#xff0c;计算机辅助设计技术使得机械设计更加简单…

linux carry php Soap 扩展

前言今天又出现下问题了需要解决如下&#xff1a;报错信息是没有soap这个扩展&#xff01;解决问题如图所示&#xff1a;cd php-5.6.2/ext/soap//usr/local/php5/bin/phpize # 进入phpize开始编译安装 ./configure -with-php-config/usr/local/php5/bin/php-config -enable-so…

html使用highcharts绘制饼图,html js highcharts绘制圆饼图表

jquery实现饼状图效果 - 站长素材var chart;$(function () {var totalMoney999var zccw178var sycw821$(document).ready(function() {chart new Highcharts.Chart({chart: {renderTo: pie_chart,plotBackgroundColor: white,//背景颜色plotBorderWidth: 0,plotShadow: false}…

pycharm的安装配置和简单使用

1.pycharm的安装和配置1&#xff09;下载地址https://www.jetbrains.com/pycharm/download/#sectionwindows各位可以选择Community版本进行安装学习&#xff0c;土豪可以选择Professional版本下载安装包后默认安装2&#xff09;基本设置file-setting-project-project interpret…

港中大、商汤开源目标检测工具包mmdetection,对比Detectron如何?

近日&#xff0c;香港中文大学-商汤联合实验室开源了基于 PyTorch 的检测库——mmdetection。上个月&#xff0c;商汤和港中大组成的团队在 COCO 比赛的物体检测&#xff08;Detection&#xff09;项目中夺得冠军&#xff0c;而 mmdetection 正是基于 COCO 比赛时的 codebase 重…

关注中国的房地产市场

美国房贷呆账持续恶化引发道指大跌 亚洲股市应声猛泻中国的房地产&#xff0c;现在热得不得了&#xff0c;很多人贷款买房&#xff0c;买房子的人多了&#xff0c;房价也就上涨很多&#xff0c;投机商也囤积居奇。更促使房价迅猛上升。当中国房价不断上涨的势头减缓的时候&…

冠军揭晓!京东Alpha开发者大赛Pick谁上了C位

近期&#xff0c;京东Alpha开发者大赛圆满结束。遍布全国的AI开发爱好者&#xff0c;对本次大赛展现出了超乎想象的激情与热爱&#xff0c;开发出了很多优质、好玩的技能作品。家中有叮咚的朋友们也纷纷表示更喜欢撩音箱了&#xff0c;因为男女朋友、赚钱、娱乐游戏、学习……通…

大白话讲解Promise(二)理解Promise规范

上一篇我们讲解了ES6中Promise的用法&#xff0c;但是知道了用法还远远不够&#xff0c;作为一名专业的前端工程师&#xff0c;还必须通晓原理。所以&#xff0c;为了补全我们关于Promise的知识树&#xff0c;有必要理解Promise/A规范&#xff0c;理解了它你才能知道Promise内部…

量子计算机人类意识云,意识上传-人类距离永生还要多久(大脑的工作原理很有可能与量子计算机一致)...

事情的引子是最近的科幻电影《炭变》&#xff0c; 300年后&#xff0c;人类意识上传到数字植入物(称为“堆栈”)中&#xff0c;并且富人还可以不停的升级&#xff0c;并基本上永远活着。虽说这只是部科幻电影&#xff0c;但也会让很多人流口水&#xff0c;毕竟如果有可能实现永…

Alpha混合

Direct3D计算Alpha混合的颜色公式&#xff1a;Color ( SrcRGB * SrcK ) ( DestRGB * DestK )SrcRGB表示源颜色值&#xff0c;即将要绘制的颜色值。SrcK表示源混合系数&#xff0c;通常赋值为D3DBLEND_SRCALPHA&#xff0c;即当前绘制像素的Alpha值DestRGB表示目标颜色值&…

考研计算机专业课怎么复习,2016考研计算机专业课如何复习?

2016考研计算机专业课如何复习&#xff1f;?基础复习阶段以指定参考书为主&#xff0c;兼顾笔记&#xff0c;进行专业课的第一轮复习。看书要以理解为主&#xff0c;不必纠缠于细节&#xff0c;并在不懂的知识点处做上标记。第一步&#xff0c;选择一本难度适宜、内容全面、与…

Linux 学习手记(1):命令行BASH的基本操作

1. Shell 是什么 Shell&#xff08;壳&#xff09;是用户与操作系统底层&#xff08;通常是内核&#xff09;之间交互的中介程序&#xff0c;负责将用户指令、操作传递给操作系统底层。 Shell一般分为&#xff1a;图形化Shell&#xff08;GUI&#xff09;、命令行Shell&#xf…

为了智能驾驶,李彦宏要改造城市道路了!

10 月 18 日&#xff0c;在世界智能网联汽车大会上&#xff0c;百度 CEO 李彦宏提到&#xff1a;当汽车变得越来越智能&#xff0c;道路的基础设施也必须跟着变&#xff0c;必须进行改造。 李彦宏在发言中表示&#xff0c;“很多自动驾驶汽车都是需要依赖极其昂贵的激光雷达来…

LoadRunner Winsock 10053错误的真正原因

最近使用LoadRunner进行Winsock协议的性能测试时&#xff0c;测试的WebServer是JBoss&#xff0c;经常出现10053错误&#xff0c;现象如下&#xff1a;当我用lrs_create_socket创建连接之后&#xff0c;当这个socket连接的请求次数达到100次后&#xff0c;这个连接就不可用了&a…

dsp和通用计算机的区别,dsp芯片是什么_dsp芯片和通用微处理器有什么区别

对于dsp芯片很多人都会比较陌生&#xff0c;它主要运用在信号处理、图像处理、声音语言等多个场所。那么dsp芯片到底是什么呢&#xff1f;它和通用微处理器有什么不同。接下来小编就简单的给大家介绍一下dsp芯片是什么及dsp芯片和通用微处理器有什么区别。一、dsp芯片是什么1、…

百度大脑发布企业服务解决方案,将 AI 技术落实到细分领域

人工智能竞争之势愈演愈烈&#xff0c;AI与场景应用的深度结合将成为各家企业的取胜关键。10月18日&#xff0c;百度大脑行业创新论坛在北京正式拉开帷幕&#xff0c;届时将走进全国6个城市举办7场以企业服务、信息服务和零售等为主题的专题活动&#xff0c;展示人工智能与不同…

图片上传(加水印、缩略图、远程保存)的简单例子

图片上传(加水印、缩略图、远程保存&#xff09;的简单例子&#xff08;应用于51aspx.com&#xff09;该源码下载地址&#xff1a;http://51aspx.com/CV/ImageUpload今天看到xiongeee发的文章使用使用FileUpload控件上传图片并自动生成缩略图、自动生成带文字和图片的水印图 …