Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ CentOS Set the Mono environment variable     - Upgrading from Fedora 20 to 21 (Linux)

- Build your own Python coding environment (Linux)

- Boost notes --Asio - (1) a simple small example of synchronous communication (Programming)

- Teach you how to protect the Linux operating system security tips (Linux)

- Customize the 404 error page Nginx (Server)

- Puppet centralized configuration management system (Server)

- MNIST presentation and database conversion (Database)

- Use MD5 transform algorithm to prevent exhaustive decipher passwords (Linux)

- Hadoop 0.23 compile common errors (Server)

- CentOS7 install NTFS-3G driver (Linux)

- Ubuntu: To install chat client Chatty 0.6.1 (Linux)

- Terminal Linux command prints - echo (Linux)

- tespeed - test speed of Python tools (Linux)

- Empty password Linux operating system (Linux)

- Daemon under Linux (Linux)

- Linux start the process (Linux)

- Elasticsearch Kibana installation notes (Linux)

- Red Hat Linux mount U disk (Linux)

- Linux group account deletion, and other related operations (Linux)

- Modify grub solve computer startup error: ERROR 17 (Linux)

 
         
  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
./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)
     
         
       
         
  More:      
 
- Oracle 12c PDB Analysis (Database)
- How do you access Dropbox Linux command line (Linux)
- iOS in Singleton (Programming)
- Linux, rename the file or folder (mv command and rename command) (Linux)
- How to display a dialog Bash Shell script (Programming)
- You must ask yourself four questions before deploying Docker (Server)
- MariaDB database storage path modify configuration issues (Database)
- Getting Started with Java NIO (Programming)
- Getting Started with Linux system to learn: How do I know which processes are running on the CPU core (Linux)
- Kubernetes cluster deployment (Server)
- Apple Mac computer to install Windows 10 Concise Guide (Linux)
- When a software RAID data recovery and reconstruction of how failure (Linux)
- Debian (Wheezy) were installed wxPython GUI development (Linux)
- Python several standard types of built-in functions (Programming)
- View processes and threads under Linux (Linux)
- Configure the Linux kernel and use iptables to do port mapping (Linux)
- 30 minutes with your Quick Start MySQL Tutorial (Database)
- MySQL monitoring tools -orzdba (Database)
- Android View event delivery (Programming)
- UNIX file permissions in the "set user ID bit" (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.