An error occurs when you compile the makefile file in autotools (resolved)

Source: Internet
Author: User
An error (solved) occurs when you compile the makefile file in autotools-Linux general technology-Linux programming and kernel information. For more information, see the following. An error occurs when I use autotools to compile the makefile file:
Configure: error: cannot find install-sh or install. sh in ".""./..""./../.."


[Yan @ localhost ch2] $ ls
Avg. c main. c
[Yan @ localhost ch2] $ autoscan
[Yan @ localhost ch2] $ mv configure. scan configure. in
################### Configure. in content ##########################
#-*-Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ (2.61)
# AC_INIT (FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_INIT (test, 1.0)
AM_INIT_AUTOMAKE (test, 1.0)
AC_CONFIG_SRCDIR ([main. c])
AM_CONFIG_HEADER (config. h)

# Checks for programs.
AC_PROG_CC

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_CONFIG_FILES ([makefile])
AC_OUTPUT
######################################## ###############
[Yan @ localhost ch2] $ aclocal
[Yan @ localhost ch2] $ autoconf
[Yan @ localhost ch2] $ autoheader
[Yan @ localhost ch2] $ vim makefile. am
############ Makefile. am #############
AUTOMAKE_OPTIONMS = foreign
Bin_PROGRAMS = test
Test_SOURCES = main. c avg. c
######################################## ###
[Yan @ localhost ch2] $./configure

[ This post was last edited by yanyaohua]

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.