Ubuntu below compile Libuv

Source: Internet
Author: User
Tags automake

LIBUV Download Address

Https://github.com/libuv/libuv


GitHub the above description of the compilation is this

$ sh autogen.sh
$./configure
$ make
$ make check
$ make install
Well, that's normally the case, but if you're a new machine, you might get a few mistakes.


Error 1: Executing

SH autogen.sh
When prompted bash:./autogen.sh:/bin/sh^m: Interpreter Error: No file or directory

This you need to use Dos2unix autogen.sh to convert the file format.

However, since you are a new machine, you may encounter error 2 when using the Dos2unix autogen.sh command.


Error 2:

The program "Dos2unix" has not been installed. You can use the following command to install:
sudo apt-get install Dos2unix


This is good to do, people are prompted how you do not.

After installing the Dos2unix, perform Dos2unix autogen.sh again. Then you perform SH autogen.sh will encounter error 3.


Error 3:

./autogen.sh:1:./autogen.sh:automake:not found
./autogen.sh:33:test:illegal Number:
./autogen.sh:34:test:illegal Number:
+ Libtoolize--copy
./autogen.sh:43:./autogen.sh:libtoolize:not found


In the light of the experience of error 2, what is missing is what to pretend.

sudo apt-get install automake libtool autoconf

Get.

Now, you can finally finish the SH autogen.sh.


In addition, if you are first compiled on Windows, and then use FTP upload to Ubuntu, after the completion of the SH autogen.sh will not generate configure this file. You must download it again. I wonder if this little bug will be repaired later.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.