Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ CentOS Set the Mono environment variable     - To install Emacs under CentOS 6.5 (Linux)

- Python 3.5 await / async (Programming)

- Security Features Linux and Unix operating system, programming (Linux)

- Depth understanding of DB2 table space (Tablespace) (Database)

- How to fix Ubuntu / Mint can not add PPA source of error (Linux)

- The three-way division of the sorting algorithm Quicksort (Programming)

- MySQL how to export files with the date format (Database)

- MySQL bulk insert data script (Database)

- Object-C in the preparation of multi-parameter function parameter is omitted (Programming)

- Linux how to handle file names that contain spaces and special characters (Linux)

- Linux System Getting Started Learning: Fix ImportError: No module named scapy.all (Linux)

- pga_aggregate_target and _pga_max_size can not use absolute limit actual PGA (Database)

- CentOS 6 / Linux su: Unable to set user ID: Resource temporarily unavailable (Linux)

- How to merge two pictures in Cacti (Linux)

- Java logging performance of those things (Programming)

- MySQL completely uninstall and install Configuring Character Sets under Linux (Database)

- How to network to share files between Windows, MAC and Linux (Linux)

- What factors affect the performance of Java calls (Programming)

- Use in Linux ipmitool tool (Linux)

- BCP importing and exporting large amounts of data Practice (Database)

  CentOS Set the Mono environment variable
  Add Date : 2018-11-21      
  CentOS Set the Mono environment variable

GitHub has scripts to install Mono directly from a script, as described at https://github.com/nathanb/iws-snippets/tree/master/mono-install-scripts/Fedora.

1, install the latest Mono environment Mono-2.11

Mkdir mono-2.11
Cd mono-2.11
Wget --no-check-certificate https://github.com/nathanb/iws-snippets/tree/master/mono-install-scripts/fedora/install_mono-2.11.sh
Chmod 755 install_mono-2.11.sh

2. Set the Mono environment variable on CentOS

The installation script will Mono installed to / opt / mono-2.11 /, Mono need to join the directory system $ PATH variable

Method 1: Add a variable in the / etc / profile file [Valid for all users (permanent)]
Use the VI to add variables to the file / etc / profile, which is valid for all Linux users and is "permanent".
[Root @ SNDA-192-168-15-161 ~] # vi / etc / profile
Add the following two lines to the end of the file
PATH = / opt / mono-2.11 / bin: $ PATH
Export PATH

If the changes just take effect immediately, the need to implement the following code
[Root @ SNDA-192-168-15-161 ~] # source / etc / profile

Method two: /etc/profile.d/ directory to create a Mono configuration

Create a new mono.sh

Initialize the environment variable in this file

Export PATH = $ PATH: /opt/mono-2.11/bin

If the changes just take effect immediately, the need to implement the following code

[Root @ SNDA-192-168-15-161 profile.d] # source mono.sh

Now you can directly execute the Mono command

[Root @ SNDA-192-168-15-161 profile.d] # mono -V
Mono JIT compiler version 2.11.3 (tarball Thu Oct 11 07:46:58 CST 2012)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. Www.mono-project.com
        TLS: __thread
        SIGSEGV: altstack
        Notifications: epoll
        Architecture: amd64
        Disabled: none
        Misc: softdebug
        LLVM: supported, not enabled.
        GC: Included Boehm (with typed GC and Parallel Mark)
- CentOS yum source as the default setting methods in DVD (Linux)
- Java in several ways of using MongoDB (Programming)
- Vim custom color (Linux)
- MySQL Authorized a recovered (Database)
- CentOS 7 version how to achieve the power to start the graphical interface (Linux)
- Linux modify the system time (Linux)
- Fedora 22 installation and configuration optimization (Linux)
- Installation of Ubuntu Make under Ubuntu 15.10 (Linux)
- How to understand Python yield keyword (Programming)
- CentOS7 install and configure Nagios (Server)
- How to use the DM-Crypt encryption Linux File System (Linux)
- After the first remote installation GlassFish Web to remotely access their back office management system error solution appears (Server)
- Installation of Gitlab under Ubuntu (Linux)
- Linux System Getting Started Learning: Fix ImportError: No module named scapy.all (Linux)
- Linux Network Programming --epoll model Detailed principles and examples (Programming)
- Calling Qt libraries to implement functional processes of some summary (Programming)
- Machine Learning: Classification of the curse of dimensionality (Programming)
- JQuery implements the same content merge cells (Programming)
- Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes) (Programming)
- Use Mop monitor stock prices at the Linux command line (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.