Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: intalling on OS X #23

Closed
keybraker opened this issue Aug 13, 2017 · 7 comments
Closed

Problem: intalling on OS X #23

keybraker opened this issue Aug 13, 2017 · 7 comments

Comments

@keybraker
Copy link

I try to instal the project but configure doesn't work :

➜ exiv2 git:(master) ./configure
zsh: no such file or directory: ./configure
➜ exiv2 git:(master) make config
cd config && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f config.make config
autoconf -o ../configure
make[1]: autoconf: No such file or directory
make[1]: *** [config] Error 1
make: *** [config] Error 2
➜ exiv2 git:(master) make
Makefile:163: *** File config/config.mk does not exist. Did you run ./configure?. Stop.
➜ exiv2 git:(master)

What am I doing wrong ?

@clanmills
Copy link
Collaborator

Ah, an easy question:

$ make config 
$ ./configure

The configure script is part of our distribution (downloaded from exiv2.org), however when you use pull the code from the repos, you have to generate the configure script.

In README it says:

On UNIX-like systems, use the GNU configure script. Run the following
commands from the top directory (containing this file) to configure,
build and install the library and utility:

    $ ./configure
    $ make
    $ sudo make install  (Cygwin/MinGW $ make install)

Caution:
    If you downloaded the source code from the subversion repository,
    you will have to generate the configure script:

    $ make config
    $ ./configure
    $ make
    $ sudo make install  (Cygwin/MinGW $ make install)

To build the sample applications:

    $ make samples

The default install locations are /usr/local/lib for the library,
/usr/local/bin for the exiv2 utility and /usr/local/include/exiv2 for the
header files. Use the --prefix=directory option of the configure script to
change the default. Run './configure --help' to see a list of all options.

To uninstall Exiv2 from a UNIX-like system, run:

    $ sudo make uninstall

@keybraker
Copy link
Author

keybraker commented Aug 13, 2017

I downloaded it from the site because from Github there is configure missing and make config does not work :(

@clanmills
Copy link
Collaborator

Ah, you'll need to install the autotools. I think you can get them from MacPort with $ sudo port install autoconf. You'll also need pkg-config to build the sample applications.

752 rmills@rmillsmbp:~ $ which autoconf
/usr/local/bin/autoconf
753 rmills@rmillsmbp:~ $ which pkg-config
/usr/local/bin/pkg-config
754 rmills@rmillsmbp:~ $ 

@keybraker
Copy link
Author

I'm not familiar with this can you give me an example of usage ?
thank you

@clanmills
Copy link
Collaborator

clanmills commented Aug 13, 2017

This are essential build tools for dealing with open-source. You're on the Mac, right? Install MacPorts:

https://www.macports.org/install.php

$ sudo port install autoconf
$ sudo port install pkgconfig

If this doesn't work, Google is your friend. You'll find a way to get those utilities onto your machine. For example: https://cduu.wordpress.com/2011/11/26/install-pkg-config-on-mac-os-x/

@keybraker
Copy link
Author

Yes I'm on Mac, I installed MacPorts and the only project that ./configure was on, was the one from the site not GitHub, and now I run sudo port install autoconf in exiv2-trunk, and I get sudo: port: command not found.

@clanmills
Copy link
Collaborator

Can we talk on FaceTime 'robin@clanmills.com' and I will "talk you down.". Are you a beginner in the world of open-source?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants