-
Notifications
You must be signed in to change notification settings - Fork 253
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
Building graphviz from source on Ubuntu (to add gts triangulation library) #1237
Comments
I'm not sure what I did, but I somehow got it working (at least, all looks good so far). For others having this problem, try:
Good luck! |
Hi - in case it helps, I’ll add that I routinely build graphviz using my own
non-privileged user ID and install in my home directory.
Most (all) of the external packages graphviz needs are installed in /usr/local
in my case using Mac homebrew. XQuartz is installed too.
The configure looks like
CC=clang CXX=clang++ AR=/usr/bin/ar LIBTOOL=glibtool ./configure CFLAGS='-Wl,-no_pie -g -O0 ' CXXFLAGS='-Wl,-no_pie -g -O0' --with-extralibdir=/usr/local/opt/gettext/lib --with-extraincludedir=/usr/local/opt/gettext/include --prefix=/Users/north --with-cairopango --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib --with-ann=yes --disable-php --enable-static
Some of this may be superfluous but it works. I think there the Xcode based tools like clang
and the GNU based tools like glibtool do not see totally eye-to-eye.
If you are having problems with this, maybe there is something in an environment variable like PATH or CFLAGS that
is pointing to the wrong copy of some package that was previously installed. In my case I already have another
copy of graphviz installed via homebrew that doesn’t interfere with my personal build.
Stephen North
|
This thread was very helpful to me! For anyone else having trouble, I'll just note that my exact steps were:
|
@dustinmichels What are the |
pkg-config is a facility for getting info, during make of my package, about the CFLAGS and LIBS required to include headers and link to another packages libs.
packages that provide shared libraries that are intended for use by other projects should provide pkg-config info.
pks-config info is stored in *.pc files in a well-known place (on Fedora: /usr/lib64/pkgconfig ) or anywhere in a PHG-CONFIG-PATH
… On September 18, 2017 at 12:32 PM blaiseli ***@***.***> wrote:
@dustinmichels https://github.com/dustinmichels What are the pkg-config commands for?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #1237 (comment) , or mute the thread https://github.com/notifications/unsubscribe-auth/ABcTPZ2T6a1hrEeU7gkgXPXVF7Q5aj6mks5sjpsXgaJpZM4NRaSY .
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When installing on ubuntu (16.04.2) with
sudo apt install graphviz
, I get the following error when trying to usesfdp
:After some searching I found out that it's because graphviz was built with
--without-gts
(launchpad bug report). So I set about trying to build it myself (I'm new to this).I followed the following procedure (from this SO answer):
sudo apt install libgts-dev
sudo pkg-config --libs gts
sudo pkg-config --cflags gts
graphviz-2.40.1.tar.gz
from heresudo ./configure --with-gts --prefix ~
in the foldersudo make
in the foldersudo make install
in the folderAfter doing that I can successfully use some commands (dot, fdp), but not others (sfdp, neato). I get
/usr/bin/sfdp: No such file or directory
when trying to usesfdp
, for example. Can anyone see anything wrong with my procedure? Thanks!The text was updated successfully, but these errors were encountered: