In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to install a Hard Float-enabled .NET environment under the raspberry pie Raspbian. The content is concise and easy to understand, and it will definitely catch your eyes. I hope you can get something through the details of this article.
[extraneous remarks]
Recently entered a raspberry pie game, the system installed the official recommended Hard Float Raspbian, because it is derived from Debian, so Mono is very easy to install. However, the Mono in the official source cannot fully support .NET programs under Hard Float's Raspbian, for example, it is impossible to run Winform on LXDE, but it feels bad to install Soft Float, so we need to install a .NET environment that supports Hard Float in Hard Float's Raspbian.
[1. Install Mono that supports Hard Float]
There are kind-hearted people on the forum of Raspberry who have compiled the Mono that Raspberry can use to support Hard Float, so we can respectively type in the following code to install, and the compressed package is divided by directory, which can be extracted directly to "/", and Mono will be installed under "/ usr/local/".
Cd ~ wget https://www.dropbox.com/s/sask17flot3zqlg/mono_2_11_4_armv6hf_binary.tgz cd / sudo tar zxf ~ / mono_2_11_4_armv6hf_binary.tgz sudo ldconfig
However, as we all know, the download speed of Dropbox in China is too slow. I drag it down and share it on Baidu Cloud. If you need it, you can download it from China and decompress it directly: http://pan.baidu.com/share/link?shareid=1961660956&uk=2181301491
If you have previously installed Mono, you need to remove it completely before installing it. Delete can be done using the following command:
Sudo apt-get remove mono-complete mono-runtime mono-common cli-common libmono0 sudo apt-get remove-purge mono-runtime libmono-2.0 libmono-profiler mono-devel monodoc-browser
After installation, you can enter mono-V to have a look. I'm so happy to have hardfp-abi! (the following figure shows the Mono in the official source.)
[II. Install Gtk#]
Mono that supports Hard Float is installed for this purpose, because the installed Mono is not installed from the official source, so many components from this step can only download the source code to compile and install.
First install the necessary components
Sudo apt-get install automake libtool libgdiplus libpango1.0-dev libatk1.0-dev libgtk2.0-dev libglade2-dev
Then download Gtk# and install it
Cd ~ wget http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.12/gtk-sharp-2.12.10.tar.gz tar zxf gtk-sharp-2.12.10.tar.gz cd gtk-sharp-2.12.10/. / configure make sudo make install
But it seems that the speed of gnome's website is also quite slow, the portal: http://pan.baidu.com/share/link?shareid=2574551187&uk=2181301491.
After installation, go to LXDE and you can open the Winform program. However, if locale is not set to zh-cn, even if the Chinese font is installed, the characters in the interface are still squares, as shown in the following figure.
A relatively simple way is to modify the font mapping. We can modify "/ etc/fonts/conf.d/49-sansserif.conf" and change the sans-serif in * * to your favorite Chinese font, such as "WenQuanyi Micro Hei", as shown in the following figure.
[3. Install xsp]
In addition to running Winform programs under Linux, it should be more useful to run Web applications. First of all, we need to install xsp.
Cd ~ sudo wget http://download.mono-project.com/sources/xsp/xsp-2.10.tar.bz2 sudo tar jxf xsp-2.10.tar.bz2 cd xsp-2.10. / configure make sudo make install
[IV. Install mod_mono]
If you like to use apache2, you can use mod_mono, a component of apache2, to make apache2 support Mono, of course, other Web servers are also possible.
Cd ~ sudo wget http://download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2 sudo tar jxf mod_mono-2.10.tar.bz2 sudo apt-get install apache2-threaded-dev cd mod_mono-2.10. / configure make sudo make install
However, since Mono and Xsp are not installed under "/ usr/", but under "/ usr/ local/", we need to pay special attention when configuring them. For example, you can use MonoAutoApplication, that is, modify "/ etc/apache2 / mod_mono.conf" and add the following two sentences in *:
MonoServerPath "/ usr/local/bin/mod-mono-server2" MonoAutoApplication enabled
Then copy the mod_mono.conf to "/ etc/apache2/mods-enabled" and restart apache2. Of course, the more traditional way is to move mod_mono.conf to mods-available, and then create a link under mods-enabled.
The above is how to install a .NET environment that supports Hard Float under the raspberry pie Raspbian. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.