LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2015, 02:40 PM   #1
granfran
Member
 
Registered: Jun 2015
Posts: 33

Rep: Reputation: Disabled
autoconf


I am trying to install a package that is bundled with a configure.ac file. My understanding is that I need autoconf to compile this.

I am running debian so used apt-get to install autoconf and Pkg-config


Now, when I get the following message:

Code:
# autoconf configure.ac

configure.ac:45: error: Could not locate the pkg-config autoconf
    macros. These are usually located in /usr/share/aclocal/pkg.m4.
    If your macros are in a different location, try setting the
    environment variable AL_OPTS="-I/other/macro/dir" before running
    ./autogen.sh or autoreconf again.

I verified to that pkg.m4 is correctly installed in usr/share/aclocal

Thanks in advance for help
 
Old 07-09-2015, 03:23 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,361

Rep: Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569
just run
Code:
autoreconf -iv
you do NOT run the .ac files nor do you run the .m4 files

but
you first have to have the auto tools installed

did you install the build essentials

Last edited by John VV; 07-09-2015 at 03:24 PM.
 
Old 07-09-2015, 03:33 PM   #3
granfran
Member
 
Registered: Jun 2015
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
just run
Code:
autoreconf -iv
you do NOT run the .ac files nor do you run the .m4 files

but
you first have to have the auto tools installed

did you install the build essentials
Thanks. I have autoconf installed. Is this what you are referring to?

When I run the command you suggested, a configure file is generated. When I execute the configure script, I get the following:

Code:
./configure
configure: error: cannot find install-sh, install.sh, or shtool in config "."/config
I have an file named INSTALL, but none of those listed int he error message.
 
Old 07-09-2015, 03:55 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,049

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
Re #3.
Quote:
cannot find install-sh, install.sh, or shtool in config
The link "install-sh" (a link /usr/share/automake-**/install-sh is created with :
$ automake --add-missing
 
Old 07-09-2015, 04:21 PM   #5
granfran
Member
 
Registered: Jun 2015
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #3.

The link "install-sh" (a link /usr/share/automake-**/install-sh is created with :
$ automake --add-missing
Thanks. When issuing the command you recommend, the result is


Code:
# automake --add-missing
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:29: installing 'config/config.guess'
configure.ac:29: installing 'config/config.sub'
configure.ac:36: installing 'config/install-sh'
automake: error: no 'Makefile.am' found for any configure output


# ./configure
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/seafile/btrfs-progs-master':
configure: error: no acceptable C compiler found in $PATH
 
Old 07-09-2015, 06:35 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,361

Rep: Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569
Did you actually READ the error?????

Code:
checking for gcc... no
checking for cc... no
you have not installed a compiler
so there is NO PROGRAM to build this UNKNOWN software

you have NOT installed "build-essential"

i do not use "sudo" so
Code:
su -
apt-get update 
apt-get install build-essential
 
Old 07-09-2015, 11:59 PM   #7
granfran
Member
 
Registered: Jun 2015
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
Did you actually READ the error?????

Code:
checking for gcc... no
checking for cc... no
you have not installed a compiler
so there is NO PROGRAM to build this UNKNOWN software

you have NOT installed "build-essential"

i do not use "sudo" so
Code:
su -
apt-get update 
apt-get install build-essential
Thanks. That helped
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
*** YOU'RE USING autoconf (GNU Autoconf) 2.60. KDE requires autoconf 2.52, 2.53 or 2. arubin Slackware 6 09-24-2008 03:31 AM
autoconf RudraB Programming 3 03-27-2008 12:53 PM
No autoconf? lectraplayer SUSE / openSUSE 9 01-24-2005 09:23 PM
autoconf 2.54 need HELP !! Baldrick65 Linux - Software 1 08-21-2003 07:56 AM
autoconf 2.52 or 2.53 caleb Conectiva 14 10-08-2002 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration