LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to run a configure.ac file (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-a-configure-ac-file-4175596216/)

eco_bach 12-27-2016 09:45 AM

How to run a configure.ac file
 
Hi
Trying to install and run this package
https://github.com/phatina/simple-mtpfs

I already have fuse installed and to install a C compiler I ran
Code:

sudo apt-get install build-essential
After downloading the git repostory, to properly install simple-mtpfs requires the following commands

Code:

$ mkdir build && cd build
$ ../configure
$ make
$ make install (as root)

I'm stumbling on
Quote:

../configure
How do you run a configure.ac file?

BW-userx 12-27-2016 09:57 AM

Quote:

Originally Posted by eco_bach (Post 5646765)
Hi
Trying to install and run this package
https://github.com/phatina/simple-mtpfs

I already have fuse installed and to install a C compiler I ran
Code:

sudo apt-get install build-essential
After downloading the git repostory, to properly install simple-mtpfs requires the following commands

Code:

$ mkdir build && cd build
$ ../configure
$ make
$ make install (as root)

I'm stumbling on
How do you run a configure.ac file?

run automake first to get a configure file. I think that was the command, or it could have been autoconf one of them two. It's been a little while sense I've done this.

just be inside of the parent directory with your source code when you run either of them commands.

Code:

userx@voider~/bin/hdparm-9.50\>> automake
automake: error: 'configure.ac' is required

yeh, try automake first.

MensaWater 12-27-2016 10:00 AM

The "../configure" says to go to the directory above the one you're in and run the configure command it finds there. Typically for builds like this "configure" is just a script that checks your environment to determine if you have everything needed to do the make and/or to enable features to build in the make. i.e. Not all features are required so for some things it may check to see if you have what it needs for that feature and if not it skips it but if so it adds it. However some things are required and it will output messages if it can't find what it needs.

If you type "cd ../" then "ls -l configure" does it in fact show you a file called "configure"? (If you do this cd don't forget to "cd -" to return to where you started afterwards.)

Why are you asking about configure.ac given that it is not part of the instruction you posted?

BW-userx 12-27-2016 10:09 AM

Quote:

Originally Posted by MensaWater (Post 5646775)
Why are you asking about configure.ac given that it is not part of the instruction you posted?

I suspect that is the closest thing to just the word configure he could find.

If he has a configure.ac without a configure anywhere in his source, automake is needed to be run to generate a configure file. I have ran into source code as such a few times before myself where I needed to run automake to get me a configure file to run.

p.s. thanks for the tip on cd'ing. I was trying to remember them. I think it was you that posted them in here before. showing the ways to get around faster in the CLI.

John VV 12-27-2016 07:32 PM

see that "autogen.sh" script !!!

RUN it
that will USE!!!! the "configure.ac" to make the configure file

AS PER THE INSTRUCTIONS!!!! ON THE LINK YOU POSTED
https://github.com/phatina/simple-mtpfs

but the build bit is WONKY
a mix of autotools and cmake ?????


All times are GMT -5. The time now is 03:07 AM.