Re: Link against MacPorts Ruby instead of system Ruby
On 27 Apr 2014, at 4:05am, Kevin Walzer k...@codebykevin.com wrote: On 4/26/14, 2:03 PM, Christopher Jones wrote: You should try looking around in the includes directory a bit …. ruby/config.h exists in /opt/local/include/ruby-2.1.0/x86_64-darwin13 so it looks like you need to add -I/opt/local/include/ruby-2.1.0/x86_64-darwin13 to your compilation command. No idea if this is normal ruby behaviour, as I said I am not a user or ruby. This did the trick: gcc -Wall -v -o run run.c -L/opt/local/lib -lruby.2.1 -I/opt/local/include/ruby-2.1.0/ -I/opt/local/include/ruby-2.1.0/universal-darwin13/ Glad it filly worked. However, as Ryan kindly pointed out, much better to use pkg-config than to hardcode the above paths. i.e. use gcc -Wall -v -o run run.c `pkg-config ruby-2.1 --cflags —libs` where `pkg-config ruby-2.1 --cflags —libs` expands dynamically to pkg-config ruby-2.1 --cflags —libs -I/opt/local/include/ruby-2.1.0/x86_64-darwin13 -I/opt/local/include/ruby-2.1.0 -L/opt/local/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -lruby.2.1.0 -lpthread -ldl -lobjc Chris Thanks. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users smime.p7s Description: S/MIME cryptographic signature ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
run fetchmail daemon as non-root user
Dear MacPorts users I'm trying to use the fetchmail port as non-root user, following the HOWTO https://trac.macports.org/wiki/howto/SetupFetchmail As long as I run it as root (using the daemondo mechanism), everything is fine. I also created user and group as in the howto, and tried both to modify the daemondo plist script (as it is part of the port) to run as _fetchmail user, and I also tried to use the launchd script from the howto, but both fail to start the daemon. The configuration seems to be ok, since I can start fetchmail daemon as _fetchmail user manually from the command line. Anybody with similar experience, or ideas where to look for the problem? Thank you and best regards, Gregor. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Question on glade/gtksourceview support
I'm trying to use the Macports port for glade3 to edit a GTK .ui file where the interface uses gtksourceview2. Unfortunately, glade-3 reports Failed to load ... .ui The following required catalogues are unavailable: sourceview2 I've already tried various combinations of GTK-related ports, currently gtk3 @3.12.0_0+universal+x11 (active) gtkglext @1.2.0_9+universal (active) gtkmm3 @3.12.0_0+universal+x11 (active) gtksourceview2 @2.10.5_7+universal (active) gtksourceview3 @3.12.1_0+universal (active) gtksourceviewmm2 @2.10.3_1+universal (active) gtksourceviewmm3 @3.2.0_1+universal (active) Looking around, I found few relevant posts, one (on an ubuntu forum - http://askubuntu.com/questions/325637/gtksourceview-in-glade-and-c) hinted at the need for the -dev version of libgtksourceview-3.0 which doesn't appear to be installed by any port / variant. FWIW, I'm running OSX 10.7.5 on an Air. Has anyone successfully used port to install run glade3 and access gtksourceview2? If so, could you confirm the port(s) needed? Otherwise, any insight into whether gtksourceview2 should be accessible - or not - would be helpful. Depending on answers I'll try to follow up with the relevant port maintainer(s). thanks, David. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Question on glade/gtksourceview support
On Sun, Apr 27, 2014 at 2:48 PM, David Duke d.j.d...@leeds.ac.uk wrote: Looking around, I found few relevant posts, one (on an ubuntu forum - http://askubuntu.com/questions/325637/gtksourceview-in-glade-and-c) hinted at the need for the -dev version of libgtksourceview-3.0 which doesn't appear to be installed by any port / variant. FWIW, I'm This is completely spurious; dev packages apply to Red Hat-derived and Debian-derived Linux only. You won't find them on Arch Linux, FreeBSD, MacPorts, etc. The regular port installs all development files, not just runtime. Since it's looking for sourceview2, a gtksourceview3 port won't supply it. Beyond that, I can't say; possibly our gtksourceview port does not install the Glade UI catalog by default in order to avoid dragging in an otherwise unnecessary glade dependency (and if so, possibly this could be addressed by a variant). -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Question on glade/gtksourceview support
On 4/27/14 11:48 AM, David Duke wrote: I'm trying to use the Macports port for glade3 to edit a GTK .ui file where the interface uses gtksourceview2. Unfortunately, glade-3 reports Failed to load ... .ui The following required catalogues are unavailable: sourceview2 I've already tried various combinations of GTK-related ports, currently gtk3 @3.12.0_0+universal+x11 (active) gtkglext @1.2.0_9+universal (active) gtkmm3 @3.12.0_0+universal+x11 (active) gtksourceview2 @2.10.5_7+universal (active) gtksourceview3 @3.12.1_0+universal (active) gtksourceviewmm2 @2.10.3_1+universal (active) gtksourceviewmm3 @3.2.0_1+universal (active) Looking around, I found few relevant posts, one (on an ubuntu forum - http://askubuntu.com/questions/325637/gtksourceview-in-glade-and-c) hinted at the need for the -dev version of libgtksourceview-3.0 which doesn't appear to be installed by any port / variant. FWIW, I'm running OSX 10.7.5 on an Air. Has anyone successfully used port to install run glade3 and access gtksourceview2? If so, could you confirm the port(s) needed? Otherwise, any insight into whether gtksourceview2 should be accessible - or not - would be helpful. Depending on answers I'll try to follow up with the relevant port maintainer(s). thanks, David. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users gtksourceview3 has a +glade variant that installs a glade catalogue. However, gtksourceview2 does not. You should file a ticket against gtksourceview2 asking for such a variant. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users