-
Couldn't load subscription status.
- Fork 0
Installation
Meproc is written in Melang scripting language. So we just need to install Melang interpreter.
And Melang is derived from a C core library named Melon, so it should be installed at first.
You can pull the built container image to run it.
docker pull melonc/meprocOr you can use the following shell to install Melon and Melang quickly.
git clone https://github.com/Water-Melon/Melon.git
cd Melon && ./configure && make && sudo make install && cd ../ && rm -rf Melon
sudo echo "/usr/local/melon/lib/" >> /etc/ld.so.conf
sudo ldconfig
git clone https://github.com/Water-Melon/Melang.git
cd Melang && ./configure && make all && sudo make install && cd ../ && rm -rf MelangNow, we can start up Meproc.
melang Meproc/meproc.mOr run in background
melang -d Meproc/meproc.mYou will see the output of Meproc.
11/10/2023 16:19:12 UTC [INFO]: Listen: 0.0.0.0:8606
The following content teaches you how to compile and install Melon and Melang with default installation parameters on UNIX/Linux step by step.
If you are a Windows developer, please refer to the Github repository of Melon for more details.
git clone https://github.com/Water-Melon/Melon.git
cd Melon
./configure
make
sudo make installIt will be installed at /usr/local/melon.
But this path is not the default library search path, so there are several solutions to resolve the loading issue during compilation and runtime.
We can create symbolic links in /usr/lib and /usr/include to the lib and include subdirectories of our library installation path.
ln -s /usr/local/melon/conf /etc/melon
ln -s /usr/local/melon/lib/libmelon.* /usr/lib/
ln -s /usr/local/melon/include /usr/include/melonIn this example, we also create a symbolic link for its configuration.
When using Melon's dynamic library, the path to the library needs to be added to the system configuration
sudo echo "/usr/local/melon/lib/" >> /etc/ld.so.conf
sudo ldconfigOr use the command given below to solve dynamic library not found problem:
export LD_LIBRARY_PATH=/path/to/melon/libdir:$LD_LIBRARY_PATHgit clone https://github.com/Water-Melon/Melang.git
cd Melang
./configure
make all
sudo make installNow we can use melang to run a Melang program.
git clone https://github.comMelonCTech/Meproc.gitThat's all.