LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2018, 01:06 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
github-downloaded source - need the missing puzzle-piece please


So I'm in this situation again. I have to get a package from github because it is available nowhere else. I unzip and get this directory:
Code:
autogen.sh  configure.ac  docs    libcacard.pc.in  Makefile.am  README.md  tests
build-aux   COPYING       git.mk  m4               NEWS         src
Note the lack of a certain file: configure. Why do github-uploaders ALWAYS forget that file? WHY?

Does everyone say to themselves, "I think I'll upload a package to github, then I'll forget a completely a crucial file, one whose absence renders my upload completely and utterly pointless. Yeah, that's a plan."

WHY??????

Googling has revealed a glimmer of a half-hint: autoreconf, autoconf and automake, but details are never there. The man pages provide a good long read, but somehow lacking the actual needed data.

Experimentation has shown the following.

1) renaming Makefile.am Makefile and then running make does not work

2) renaming "configure.ac" to "configure" and then running ./configure does not work

3) typing either of:
Code:
  autoreconf ; autoconf ; automake
  autoreconf ; automake ; autoconf
  autoconf ; automake ; autoreconf
  autoconf ; autoreconf ; automake
  automake ; autoreconf ; autoconf
  automake ; autoconf ; autoreconf
does not work

I am almost sure there are one are more commands to be typed. They are the same commands for every git-downloaded package. They must be very specific, I am sure with specific switches/options. No where in all of my googling have I found the exact sequence of commands.

Can someone please tell me? Thank you.
 
Old 02-25-2018, 02:13 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,489

Rep: Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361Reputation: 2361
I seem to vaguely remember running
Code:
xmkmf -a
followed possibly by
Code:
./autogen.sh
Try it anyhow.
 
Old 02-25-2018, 02:17 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,263

Rep: Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339Reputation: 5339
"configure" isn't there because it's meant to be generated from the files that are.

You can either do:

Code:
autoreconf -i
or

Code:
sh autogen.sh
If neither of those work, then post a link to that particular project's GitHub page.

Last edited by dugan; 02-25-2018 at 05:15 PM.
 
1 members found this post helpful.
Old 02-25-2018, 07:09 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,763

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Sorry. I have to ask: What does the README file say?
 
Old 02-26-2018, 10:06 PM   #5
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by scasey View Post
Sorry. I have to ask: What does the README file say?
Well, there is a README.md file. Not sure why but often proper file names are mangled by github so that there is a .md on the end. From the most recent had-to-get-it-from-git package, the entire readme:
Code:
# libcacard ![alt text][travis]

CAC (Common Access Card) library

This library provides emulation of smart cards to a virtual card
reader running in a guest virtual machine.

It implements DoD CAC standard with separate pki containers
(compatible coolkey), using certificates read from NSS.

# History

This project used to be part of qemu until version 2.5. The history
has been preserved and it inherits the tags and version.

# Authors

This project was originally developped by:

- Alon Levy <alevy@redhat.com>
- Robert Relyea <rrelyea@redhat.com>

[travis]: https://travis-ci.org/SPICE/libcacard.svg?branch=master
Hmm, savor the detail, oh yes.

Anticipating your next question, no INSTALL, INSTALL.md


[hr]

Stumbled (almost literally) onto a command that actually worked:
Code:
autoreconf -fiv
That was before I read dugan's post. D'oh!

Will it work in the future for other has-to-be-git-can't-get-it-anywhere-else packages? Only time will tell.

Thank you, all, for the replies.

Not marking this solved just yet, in case the command doesn't work on the next package I try it on.
 
Old 02-27-2018, 03:15 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,763

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
autogen.sh starts with:
Code:
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
and it sets up for and runs:
Code:
autoreconf --verbose --force --install -Wno-portability
 
Old 02-27-2018, 03:30 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
seeing as there is no link to this software
a GUESS is this it ????????????
https://github.com/SPICE/libcacard
BUT that is a 2year old fork of this
https://cgit.freedesktop.org/spice/libcacard/

and version 2.53 has a MAJOR!!!!! security fix


there is a makefile.am and a configure.ac

you need to build the "configure" file FOR YOUR SYSTEM
and your installed versions of the discrepancies

to do this
Code:
cd /to/the/folder/with/the/software
autoreconf -iv 
./configure --prefix=/YOUR/INSTALL/LOCATION 
make 
su
------ your root password when asked for ----
make install

Last edited by John VV; 02-27-2018 at 03:32 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if a piece of SW installed from source already? Josh2017 Linux - Newbie 12 02-21-2017 11:38 PM
OSE version of VirtualBox reports missing piece--what is it? JMCraig Linux - Server 1 06-02-2009 10:19 PM
The missing economic piece for home/personal Linux GiantKillerRobot General 1 03-07-2007 05:07 AM
building shell command piece by piece aunquarra Linux - General 7 05-02-2006 06:43 AM
Linux open source is a piece s**t if you don't know where to look. studpenguin Linux - Newbie 21 02-02-2004 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:56 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
Open Source Consulting | Domain Registration