Error when compiling Inkscape: configure: error: gcc >= 3.0 is needed to compile inkscape

Asked by Elena Paglia

Hello Inkscape Team,

I receive the following error when attempting to compile Inkscape (via Macports) on Maverick 10.9.3, Xcode5.1.1, LLVM version 5.1, XQuartz (X11).

"configure: error: gcc >= 3.0 is needed to compile inkscape"

I've seen plenty of patches and workarounds but I've been unable to successfully apply any fix as I have limited experience with Macports and Inkscpae. I'd appreciate any guidance you can provide ... step by step instructions to resolve would really help.

Thank you
Elena

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Elena Paglia
Solved:
Last query:
Last reply:
Revision history for this message
Liam P. White (liampwhite) said :
#1

Try "sudo port install g++". Then reconfigure.

Revision history for this message
Liam P. White (liampwhite) said :
#2

An alternate way is to tell configure that you want to use llvm:

$ export CXX=clang++
$ export CC=clang
$ ./configure

Revision history for this message
su_v (suv-lp) said :
#3

Why don't you use the portfile for Inkscape?

(It does build on Mavericks).

Revision history for this message
su_v (suv-lp) said :
#4

To install inkscape via MacPorts, use this command:

sudo port install inkscape

Revision history for this message
su_v (suv-lp) said :
#5

On 2014-06-20 22:46 +0100, Liam P. White wrote:
> An alternate way is to tell configure that you want to use llvm:
>
> $ export CXX=clang++
> $ export CC=clang
> $ ./configure
>

That's not sufficient with the 0.48.4 tarball (that one does not build
without patches with latest versions of the dependencies), and it also
misses additional settings (CXXFLAGS) required on Mavericks (inkscape
needs to be compiled with -std=c++11 if using clang from Xcode >= 5.x
and Maverick's new default C++ Standard library (libc++)).

The official MacPorts portfile handles all required details - unless the
user wants to build trunk for local development (and has experience with
compiling ported projects with dependencies installed in non-default
locations) I would recommend to use one of the available MacPorts ports:
'inkscape' for stable 0.48 or 'inkscape-devel' for current trunk.

Revision history for this message
Elena Paglia (ininked) said :
#6

I've attempted to install the inkscape port numerous times but get ... Error: Processing of port inkscape failed

It creates a pkg with the file name including version number 0_0.48.4_32 but then later when it goes to look for the pkg to install its looking for a file with version 0_0.48.4 as its name.

So I've attempted alternate methods to install but each has resulted in an error. I'd be very grateful for any guidance you can provide to fix this particular issue.

Here is the log detail:

:msg:pkg ---> Creating pkg for inkscape version 0_0.48.4_32 at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-0.48.4_32.pkg
:debug:pkg Calling /Applications/PackageMaker.app/Contents/MacOS/PackageMaker for inkscape pkg
:debug:pkg Running command line: PMResourceLocale=English /Applications/PackageMaker.app/Contents/MacOS/PackageMaker --root /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/destroot --out /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-0.48.4_32.pkg --scripts /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/pkg_scripts --info /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/PackageInfo --target 10.5 --domain system --id org.macports.inkscape --version 0.0.48.4.0.0.0.0.32 --no-relocate
:debug:pkg Running command line: /usr/bin/productbuild --resources /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/pkg_resources --identifier org.macports.inkscape --distribution /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/Distribution --package-path /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-0.48.4_32.pkg
:info:pkg productbuild: Wrote product to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-0.48.4_32.pkg
:debug:pkg changing euid/egid - current euid: 0 - current egid: 0
:debug:pkg egid changed to: 502
:debug:pkg euid changed to: 503
:debug:dmg dmg phase started at Fri Jun 20 10:18:17 EDT 2014
:debug:dmg Executing org.macports.dmg (inkscape)
:msg:dmg ---> Creating disk image for inkscape-0.48.4
:error:dmg org.macports.dmg for port inkscape returned: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-0.48.4.pkg": no such file or directory
:debug:dmg Error code: POSIX ENOENT {no such file or directory}
:debug:dmg Backtrace: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-0.48.4.pkg": no such file or directory
    while executing
"file copy $pkgpath ${package.destpath}/${imagename}"
    (procedure "package_dmg" line 30)
    invoked from within
"package_dmg $subport $version $revision"
    (procedure "portdmg::dmg_main" line 10)
    invoked from within
"portdmg::dmg_main org.macports.dmg"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:dmg Warning: targets not executed for inkscape: org.macports.dmg
:notice:dmg Please see the log file for port inkscape for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/main.log

Thank you
Elena

Revision history for this message
Liam P. White (liampwhite) said :
#7

Can you run:

$ sudo port -v install inkscape

and paste that output?

Revision history for this message
Elena Paglia (ininked) said :
#8

Liam,

I saw your message too late as I had already done the following:

->I uninstalled all ports.
->I then did a file search on my system for any files related to inkscape/inkview and deleted all files.
->port clean inkscape which indicated a broken tree (expected since I was deleting all files)
->sudo port selfupdate repaired the tree
->port install gcc-select
->port install apple-gcc42
->gcc-select --set gcc apple-gcc42
->sudo port install inkscape

After the above steps the inkscape port installed with no errors.

Given all my previous issues and mis-steps I'm really not sure the best way to proceed now to actually get a working app on my system. Can you provide a little direction ?

Thank you
Elena

Revision history for this message
Liam P. White (liampwhite) said :
#9

If you've installed the Inkscape port, you already have a working binary. Just run "inkscape" in a shell.

Making an app bundle is much harder, and not something I'm prepared to do on my own, and not something the packaging scripts can even do anymore (they've been broken for a while, as far as I have heard).

Revision history for this message
Elena Paglia (ininked) said :
#10

Thanks Liam, I've got it running now. There does appear to be a lot of errors in shell:

inkscape:57851): Gtk-WARNING **: Attempting to store changes into `/Users/elena/.local/share/recently-used.xbel', but failed: Failed to create file '/Users/elena/.local/share/recently-used.xbel.OKFRHX': No such file or directory

(inkscape:57851): Gtk-WARNING **: Attempting to set the permissions of `/Users/elena/.local/share/recently-used.xbel', but failed: No such file or directory

(inkscape:57851): Gtk-WARNING **: Attempting to store changes into `/Users/elena/.local/share/recently-used.xbel', but failed: Failed to create file '/Users/elena/.local/share/recently-used.xbel.0X46HX': No such file or directory

(inkscape:57851): Gtk-WARNING **: Attempting to set the permissions of `/Users/elena/.local/share/recently-used.xbel', but failed: No such file or directory

etc...

Is this normal ? Once, I see a response I'll close this as resolved since I've got it working for what I need it to do.

Thank you
Elena

Revision history for this message
Liam P. White (liampwhite) said :
#11

Yes, this is normal. To get it to shut up you can send its output to /dev/null and disown the process:

$ inkscape &> /dev/null & disown

This will let you close the terminal.

Revision history for this message
Elena Paglia (ininked) said :
#12

Resolved. Thank you!