CMake: set target install directory - cmake

In Gittyup we are using a patched version of libgit2 which we are including as submodule into the repository. The problem is now if I wanna install the package, the patched version of libgit2 will also be tried to install to the install prefix I defined globally. On systems like Linux this makes problems with the already installed system libgit2 version because it would override files which is undesired.
The idea now is to install libgit2 into it's own prefix /lib/Gittyup/... and not installing the headers of the libgit2 target.
Is there any possibility to prevent installing those headers and setting a new prefix for the libgit2 lib?
https://github.com/Murmele/Gittyup/tree/fixCmakeInstallationPaths
Currently libgit2 is included as follow:
if(NOT USE_SYSTEM_LIBGIT2)
add_subdirectory(libgit2)
target_include_directories(
git2 INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/libgit2/include)
endif()
-- Installing: /<prefix>/lib/pkgconfig/libgit2.pc
-- Installing: /<prefix>/lib/libgit2.a
-- Installing: /<prefix>/include/git2
-- Installing: /<prefix>/include/git2/config.h
-- Installing: /<prefix>/include/git2/pack.h
-- Installing: /<prefix>/include/git2/oidarray.h
-- Installing: /<prefix>/include/git2/cherrypick.h
-- Installing: /<prefix>/include/git2/worktree.h
-- Installing: /<prefix>/include/git2/sys
-- Installing: /<prefix>/include/git2/sys/config.h
-- Installing: /<prefix>/include/git2/sys/cred.h
-- Installing: /<prefix>/include/git2/sys/alloc.h
-- Installing: /<prefix>/include/git2/sys/merge.h
-- Installing: /<prefix>/include/git2/sys/filter.h
-- Installing: /<prefix>/include/git2/sys/index.h
-- Installing: /<prefix>/include/git2/sys/credential.h
-- Installing: /<prefix>/include/git2/sys/transport.h
-- Installing: /<prefix>/include/git2/sys/diff.h
-- Installing: /<prefix>/include/git2/sys/refdb_backend.h
-- Installing: /<prefix>/include/git2/sys/mempack.h
-- Installing: /<prefix>/include/git2/sys/refs.h
-- Installing: /<prefix>/include/git2/sys/reflog.h
-- Installing: /<prefix>/include/git2/sys/stream.h
-- Installing: /<prefix>/include/git2/sys/odb_backend.h
-- Installing: /<prefix>/include/git2/sys/path.h
-- Installing: /<prefix>/include/git2/sys/repository.h
-- Installing: /<prefix>/include/git2/sys/commit.h
-- Installing: /<prefix>/include/git2/sys/openssl.h
-- Installing: /<prefix>/include/git2/sys/hashsig.h
-- Installing: /<prefix>/include/git2/remote.h
-- Installing: /<prefix>/include/git2/odb.h
-- Installing: /<prefix>/include/git2/describe.h
-- Installing: /<prefix>/include/git2/indexer.h
-- Installing: /<prefix>/include/git2/merge.h
-- Installing: /<prefix>/include/git2/net.h
-- Installing: /<prefix>/include/git2/filter.h
-- Installing: /<prefix>/include/git2/index.h
-- Installing: /<prefix>/include/git2/credential.h
-- Installing: /<prefix>/include/git2/transport.h
-- Installing: /<prefix>/include/git2/ignore.h
-- Installing: /<prefix>/include/git2/diff.h
-- Installing: /<prefix>/include/git2/notes.h
-- Installing: /<prefix>/include/git2/annotated_commit.h
-- Installing: /<prefix>/include/git2/transaction.h
-- Installing: /<prefix>/include/git2/stash.h
-- Installing: /<prefix>/include/git2/tag.h
-- Installing: /<prefix>/include/git2/pathspec.h
-- Installing: /<prefix>/include/git2/revparse.h
-- Installing: /<prefix>/include/git2/trace.h
-- Installing: /<prefix>/include/git2/graph.h
-- Installing: /<prefix>/include/git2/cert.h
-- Installing: /<prefix>/include/git2/revert.h
-- Installing: /<prefix>/include/git2/credential_helpers.h
-- Installing: /<prefix>/include/git2/refs.h
-- Installing: /<prefix>/include/git2/blame.h
-- Installing: /<prefix>/include/git2/proxy.h
-- Installing: /<prefix>/include/git2/blob.h
-- Installing: /<prefix>/include/git2/reflog.h
-- Installing: /<prefix>/include/git2/status.h
-- Installing: /<prefix>/include/git2/apply.h
-- Installing: /<prefix>/include/git2/global.h
-- Installing: /<prefix>/include/git2/deprecated.h
-- Installing: /<prefix>/include/git2/object.h
-- Installing: /<prefix>/include/git2/revwalk.h
-- Installing: /<prefix>/include/git2/stdint.h
-- Installing: /<prefix>/include/git2/odb_backend.h
-- Installing: /<prefix>/include/git2/rebase.h
-- Installing: /<prefix>/include/git2/types.h
-- Installing: /<prefix>/include/git2/repository.h
-- Installing: /<prefix>/include/git2/signature.h
-- Installing: /<prefix>/include/git2/errors.h
-- Installing: /<prefix>/include/git2/commit.h
-- Installing: /<prefix>/include/git2/strarray.h
-- Installing: /<prefix>/include/git2/oid.h
-- Installing: /<prefix>/include/git2/reset.h
-- Installing: /<prefix>/include/git2/cred_helpers.h
-- Installing: /<prefix>/include/git2/refspec.h
-- Installing: /<prefix>/include/git2/patch.h
-- Installing: /<prefix>/include/git2/message.h
-- Installing: /<prefix>/include/git2/version.h
-- Installing: /<prefix>/include/git2/clone.h
-- Installing: /<prefix>/include/git2/attr.h
-- Installing: /<prefix>/include/git2/refdb.h
-- Installing: /<prefix>/include/git2/submodule.h
-- Installing: /<prefix>/include/git2/checkout.h
-- Installing: /<prefix>/include/git2/tree.h
-- Installing: /<prefix>/include/git2/mailmap.h
-- Installing: /<prefix>/include/git2/buffer.h
-- Installing: /<prefix>/include/git2/common.h
-- Installing: /<prefix>/include/git2/branch.h
-- Installing: /<prefix>/include/git2.h
-- Installing: /<prefix>/./indexer
-- Set runtime path of "/<prefix>/./indexer" to "$ORIGIN"
-- Installing: /<prefix>/./relauncher
-- Set runtime path of "/<prefix>/./relauncher" to "$ORIGIN"
-- Installing: /<prefix>/./Gittyup
-- Set runtime path of "/<prefix>/./Gittyup" to "$ORIGIN"
-- Installing: /<prefix>/share/applications/Gittyup.desktop
-- Installing: /<prefix>/share/metainfo/Gittyup.appdata.xml
-- Installing: /<prefix>/share/Gittyup/changelog.html
-- Installing: /<prefix>/share/Gittyup/acknowledgments.html
-- Installing: /<prefix>/share/Gittyup/privacy.html
-- Installing: /<prefix>/share/Gittyup/plugin.html
-- Installing: /<prefix>/share/Gittyup/emoji.json
-- Installing: /<prefix>/share/Gittyup/mergetools
-- Installing: /<prefix>/share/Gittyup/credential.lua
-- Installing: /<prefix>/share/Gittyup/editor.lua
-- Installing: /<prefix>/share/Gittyup/global.lua
-- Installing: /<prefix>/share/Gittyup/lexers.lua
-- Installing: /<prefix>/share/Gittyup/merge.lua
-- Installing: /<prefix>/share/Gittyup/terminal.lua
-- Installing: /<prefix>/share/Gittyup/update.lua
-- Installing: /<prefix>/share/Gittyup/window.lua
-- Installing: /<prefix>/share/Gittyup/dictionaries/Source.txt
-- Installing: /<prefix>/share/Gittyup/dictionaries/de_DE_frami.aff
-- Installing: /<prefix>/share/Gittyup/dictionaries/de_DE_frami.dic
-- Installing: /<prefix>/share/Gittyup/dictionaries/en_US.aff
-- Installing: /<prefix>/share/Gittyup/dictionaries/en_US.dic
-- Installing: /<prefix>/share/Gittyup/dictionaries/es_ANY.aff
-- Installing: /<prefix>/share/Gittyup/dictionaries/es_ANY.dic
-- Installing: /<prefix>/share/Gittyup/dictionaries/pt_BR.aff
-- Installing: /<prefix>/share/Gittyup/dictionaries/pt_BR.dic
-- Installing: /<prefix>/share/Gittyup/themes/Dark.lua
-- Installing: /<prefix>/share/Gittyup/themes/Default.lua
-- Installing: /<prefix>/share/Gittyup/themes/System.lua
-- Installing: /<prefix>/share/Gittyup/plugins/Banned.lua
-- Installing: /<prefix>/share/Gittyup/plugins/Comments.lua
-- Installing: /<prefix>/share/Gittyup/plugins/Line Length.lua
-- Installing: /<prefix>/share/Gittyup/plugins/Whitespace.lua
-- Installing: /<prefix>/share/Gittyup/plugins/banned.txt
-- Installing: /<prefix>/share/Gittyup/lexers/actionscript.lua
-- Installing: /<prefix>/share/Gittyup/lexers/ada.lua
-- Installing: /<prefix>/share/Gittyup/lexers/zig.lua
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_de.qm
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_ru.qm
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_en.qm
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_es.qm
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_ja.qm
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_pt.qm
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_pt_BR.qm
-- Installing: /<prefix>/share/locale/Gittyup/gittyup_zh_CN.qm
-- Installing: /<prefix>/share/locale/Gittyup/qtbase_de.qm
-- Installing: /<prefix>/share/locale/Gittyup/qtbase_ru.qm
-- Installing: /<prefix>/share/locale/Gittyup/qtbase_en.qm
-- Installing: /<prefix>/share/locale/Gittyup/qtbase_es.qm
-- Installing: /<prefix>/share/locale/Gittyup/qtbase_ja.qm
-- Installing: /<prefix>/share/locale/Gittyup/qtbase_pt_BR.qm
-- Installing: /<prefix>/share/locale/Gittyup/qtbase_zh_CN.qm
-- Installing: /<prefix>/./libQt5XcbQpa.so.5
-- Installing: /<prefix>/share/icons/hicolor/16x16/apps/Gittyup.png
-- Installing: /<prefix>/share/icons/hicolor/scalable/apps/Gittyup.svg
-- Installing: /<prefix>/share/licenses/Gittyup/LICENSE
-- Installing: /<prefix>/lib/cmake/zip/zipConfig.cmake
-- Installing: /<prefix>/lib/cmake/zip/zipConfigVersion.cmake
-- Installing: /<prefix>/lib/cmake/zip/zipTargets.cmake
-- Installing: /<prefix>/lib/cmake/zip/zipTargets-none.cmake
-- Installing: /<prefix>/lib/libzip.a
-- Installing: /<prefix>/include/zip/zip.h

Related

CMake Could NOT find GMP

I am trying to cross-compile CVC4, but GMP could not be found. I use the following guide for the installation: http://cvc4.cs.stanford.edu/wiki/Developer%27s_Guide
When I run ./configure.sh production I get the following error:
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find GMP (missing: GMP_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindGMP.cmake:10 (find_package_handle_standard_args)
CMakeLists.txt:356 (find_package)
-- Configuring incomplete, errors occurred!
However, I have installed libgmp3-dev:armel and libgmp10:armel:
$ sudo apt-get install libgmp3-dev:armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgmp3-dev:armel is already the newest version (2:6.1.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
$ sudo apt-get install libgmp10:armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgmp10:armel is already the newest version (2:6.1.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Are there other gmp packages I need to install or is it necessary to specify the installation location as a parameter for the ./configure.sh command.
The solution was to specify the installation location as a parameter for the ./configure.sh command:
./configure.sh --gmp-dir=/usr/lib/arm-linux-gnueabi

OOT Modules not showing up in GNURadio

Followed the instructions here to create an OOT module -
https://wiki.gnuradio.org/index.php/Guided_Tutorial_GNU_Radio_in_Python
The cmake etc all works fine -
`cmake ../
make
sudo make install
sudo ldconfig`
But when I load up GNURadio the modules don’t appear. This is the output of the make install -
`gnuradio#cjswin ~/gr-tutorial/build >> sudo make install
[ 66%] Built target pygen_python_98246
[ 66%] Built target pygen_apps_9a6dd
[100%] Built target doxygen_target
Install the project…
– Install configuration: “Release”
– Up-to-date: /home/gnuradio/pybombs/lib/cmake/tutorial/tutorialConfig.cmake
– Up-to-date: /home/gnuradio/pybombs/include/tutorial/api.h
– Up-to-date: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/init.py
– Up-to-date: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/multiply_py_ff.py
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/init.pyc
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/multiply_py_ff.pyc
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/init.pyo
– Installing: /home/gnuradio/pybombs/lib/python2.7/dist-packages/tutorial/multiply_py_ff.pyo
– Up-to-date: /home/gnuradio/pybombs/usr/share/gnuradio/grc/blocks/tutorial_multiply_py_ff.xml
– Up-to-date: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/indexpage.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/combine.xslt
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/namespacestd.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/api_8h.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/compound.xsd
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/index.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/index.xsd
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/dir_d44c64559bbebec7f509842c48db8b23.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/group__defs_8dox.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/group__block.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/dir_bebffc0fe021578eb5c034119e3e6a53.xml
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/xml/main__page_8dox.xml
– Up-to-date: /home/gnuradio/pybombs/share/doc/gr-tutorial/html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/files.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/jquery.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_s.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/dir_d44c64559bbebec7f509842c48db8b23.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/modules.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/folderopen.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtree.css
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_b.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/resize.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/group__defs_8dox.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/group__block.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/dir_bebffc0fe021578eb5c034119e3e6a53.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/dynsections.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/closed.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_h.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tab_a.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/open.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/bc_s.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/globals_defs.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/api_8h_source.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/files.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtreedata.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/api_8h.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/doxygen.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/tabs.css
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/index.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/sync_on.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/nav_f.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/sync_off.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/globals.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtreeindex0.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/splitbar.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/nav_h.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/navtree.js
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/doxygen.css
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/folderclosed.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/nav_g.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/bdwn.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/doc.png
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/api_8h.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/main__page_8dox.html
– Installing: /home/gnuradio/pybombs/share/doc/gr-tutorial/html/modules.js`
Some of the other forums have suggested changing the config.conf file, so I have gone to -
/home/.gnuradio/config.conf and added in the following (looking at the make install above my xml file seems to be going somewhere totally different to where the other gnuradio xml files are)
`[grc]
local_blocks_path=/home/gnuradio/pybombs/usr/share/gnuradio/grc/blocks`
The other xml files are here - `/usr/share/gnuradio/grc/blocks`
I have also tried doing the cmake with a prefix to that location -
`cmake -DCMAKE_INSTALL_PREFIX=/usr/share/gnuradio …/`
But this also has made no difference, i still can’t see the module when I"m in GNURadio.
Very much appreciate any help
Try to create your OOT module in the src folder of your pybombs prefix, for example:
When type pybombs install gnuradio this is installed into ~/pybombs/default/src/ (in this example the prefix name is default) so try to create your OOT module in this directory (~/pybombs/default/src/gr-your-OOT/) and continues working like you normally do it (this option works for me ...)
/home/.gnuradio/config.conf and added in the following (looking at the make install above my xml file seems to be going somewhere totally different to where the other gnuradio xml files are)
[grc]
local_blocks_path=/home/gnuradio/pybombs/usr/share/gnuradio/grc/blocks
The file that you need to edit is /home/gnuradio/.gnuradio/config.conf, you are missing one sub-directory.
cmake -DCMAKE_INSTALL_PREFIX=/usr/share/gnuradio …/
The correct install prefix in your case is /home/gnuradio/pybombs/ and not /usr/share/gnuradio/. If you really want your module to be installed in /usr and blocks definitions in /usr/share/gnuradio/grc/blocks (I do not recommend this) then the prefix should be /usr/ (without /share/gnuradio)

Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR)

I had an issue while installing headptrack with CMake when running cmake -DCMAKE_BUILD_TYPE=Release .. in heaptrack/build
-- Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR)
CMake Error at 3rdparty/libbacktrace/CMakeLists.txt:160 (message):
Could not find dwarf.h, try installing the dwarf or elfutils development
package.
-- Configuring incomplete, errors occurred!
The solution is to install the zstd dev package instead of the regular, here is the command:
sudo apt install -y libzstd-dev
The solution with the dwarf dev package for the second error:
sudo apt install libdwarf-dev

Metis: libmetis.a disappeared and reinstallation creates libmetis.so instead

The fact
I have got metis 5.1.0 installed on a desktop running on Ubuntu 12.04 LTS.
Recently I compiled a piece of software in parallel configuration that could not find the file /opt/metis/metis-5.1.0/lib/libmetis.a and threw a fatal error.
This looks weird to me because all was fine with an earlier version of the same software and with the existing metis installation.
Disappearance of libmetis.a
I have evidence that libmetis.a had been installed, though, from the stderr+stout files of the first metis installation.
For example from somewhere in the output of make install I can see:
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /opt/metis/metis-5.1.0/include/metis.h
-- Installing: /opt/metis/metis-5.1.0/lib/libmetis.a
-- Installing: /opt/metis/metis-5.1.0/bin/gpmetis
Therefore some action must have deleted libmetis.a at some point.
I have no recollection or clue of which action could have done this.
Reinstallation of metis
I then reinstalled the same version of metis by running the very same script that I used the first time. The procedure is
sudo make uninstall
sudo make clean
sudo make config prefix=/opt/metis/metis-5.1.0 shared=1 cc=gcc gdb=1 debug=1
sudo make
sudo make install
The corresponding lines in the stdout+sterr have changed though
/usr/local/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /opt/metis/metis-5.1.0/include/metis.h
-- Installing: /opt/metis/metis-5.1.0/lib/libmetis.so
-- Installing: /opt/metis/metis-5.1.0/bin/gpmetis
Comparison
cmake lives on another path. I can't recall a reason for this. I do confirm that currently cmake is installed in /usr/local/bin/cmake and that /usr/bin/cmake does not exist any longer. Either way, the version of cmake has been 3.3.1 ever since (I believe).
libmetis.so gets installed instead of libmetis.a.
Comparing the old and new stderr+stdout of the make install line by line, I see that cmake has been engaged in the first installation a great deal more. Unfortunately I have overwritten the files of the first installation and cannot provide more detail.
Summary
To summarize the changes I noted are
the static library libmetis.a disappeared (blind spot why/how/when)
cmake is displaced (blind splot why/how/when)
a copycat installation of metis leads to shared-object library libmetis.so rather than libmetis.a, perhaps after a different usage of cmake. I look at that shared=1 in the config command suspiciously, but had worked with scripts with an intention to repeat all operations faithfully. (Though not always are good intentions coded down correctly.)
The aim is to have the libmetis.a file in place again, as requested by parallel software down the line.
Any suggestions tips and pieces of wisdom to fix this issue? Thanks in advance for thinking along.

Installing Homebrew, libjpeg, and optipng for HTML5 Boilerplate build tool use

Dipping my toe into command prompts.. totally lost.
I've installed Homebrew, and attempted to install libjpeg and optipng via brew install libjpeg optipngand have run into errors. I'm not sure how exactly to describe them.. so here's the code! I'm in Terminal on a Mac running OSX 10.6.7
Thank you SO much for the help.
1961:~ Daniel$ brew install libjpeg optipng
==> Downloading http://www.ijg.org/files/jpegsrc.v8c.tar.gz
File already downloaded and cached to /Users/Daniel/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/jpeg/8c --disable-dependency-tracking
checking build system type... i386-apple-darwin10.7.3
checking host system type... i386-apple-darwin10.7.3
checking target system type... i386-apple-darwin10.7.3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for style of include used by make... none
checking for gcc... /usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/private/tmp/homebrew-jpeg-8c-42or/jpeg-8c':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> Exit Status: 77
http://github.com/mxcl/homebrew/blob/master/Library/Formula/jpeg.rb#L11
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: 8-core 64-bit dunno
OS X: 10.6.7
Kernel Architecture: x86_64
Ruby: 1.8.7-174
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode:
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc
CXX: /usr/bin/c++
LD: /usr/bin/cc
CFLAGS: -O3 -w -pipe -arch i386 -arch x86_64
CXXFLAGS: -O3 -w -pipe -arch i386 -arch x86_64
LDFLAGS: -arch i386 -arch x86_64
MAKEFLAGS: -j8
Error: Failed executing: ./configure --prefix=/usr/local/Cellar/jpeg/8c --disable-dependency-tracking
Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/#issue/4442
It looks like an autotools configure failed.
Consider re-running the install with '-vd' to keep 'config.log' around:
brew install -vd jpeg
Gist 'config.log' and any error output when reporting an issue.
Remember to include your config information: brew --config
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
1961:~ Daniel$ brew doctor
We couldn't detect gcc 4.2.x. Some formulae require this compiler.
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
/usr/bin is in your PATH before Homebrew's bin. This means that system-
provided programs will be used before Homebrew-provided ones. This is an
issue if you install, for instance, Python.
Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.
Some brews install binaries to sbin instead of bin, but Homebrew's
sbin was not found in your path.
Consider editing your .bashrc to add:
/usr/local/sbin
to $PATH.
"Git" was not found in your path.
Homebrew uses Git for several internal functions, and some formulae
use Git checkouts instead of stable tarballs.
You may want to do:
brew install git
You have an "autoconf" in your path blocking the system version at:
Custom autoconf in general and autoconf 2.66 in particular has issues
and will cause some Homebrew formulae to fail.
1961:~ Daniel$ brew install git
==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.5.tar.bz2
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.7.5 install
==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L31
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: 8-core 64-bit dunno
OS X: 10.6.7
Kernel Architecture: x86_64
Ruby: 1.8.7-174
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode:
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc
CXX: /usr/bin/c++
LD: /usr/bin/cc
CFLAGS: -O3 -w -pipe
CXXFLAGS: -O3 -w -pipe
MAKEFLAGS: -j8
Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.5 install
Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
1961:~ Daniel$ brew missing
1961:~ Daniel$ brew doctor
We couldn't detect gcc 4.2.x. Some formulae require this compiler.
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
/usr/bin is in your PATH before Homebrew's bin. This means that system-
provided programs will be used before Homebrew-provided ones. This is an
issue if you install, for instance, Python.
Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.
Some brews install binaries to sbin instead of bin, but Homebrew's
sbin was not found in your path.
Consider editing your .bashrc to add:
/usr/local/sbin
to $PATH.
"Git" was not found in your path.
Homebrew uses Git for several internal functions, and some formulae
use Git checkouts instead of stable tarballs.
You may want to do:
brew install git
You have an "autoconf" in your path blocking the system version at:
Custom autoconf in general and autoconf 2.66 in particular has issues
and will cause some Homebrew formulae to fail.
Try downloading and installing the Xcode development suite: http://developer.apple.com/xcode/
That will provide gcc (complier) to build the software