PDA

View Full Version : I want to write a very simple program to run in Ubuntu...



diablo75
March 1st, 2008, 09:09 PM
I have an application for Windows that I call Virtual Dave. It's nothing more than a window with buttons, each of which perform different commands. One command in particular executes a windows VNC client with a -connect option after it, so it will establish a reverse VNC connection with me upon request to them.

So I'd like to bring this simple one-click execution to Ubuntu. The way I did it in windows was ask a friend who happens to do work in Visual Studio to make a little program for me. And I Visual Studio is kind of like Dreamweaver in regards to creating code.

So, I guess the first question is what programming language should I pursue to make this little application? I just started to read A Byte of Python not long ago, but I don't have any other programming experience.

Here's what I want the program to do:

- Check for an Internet connection; produce error message if not present.
- Load a text file from a web server
- Have a "Begin Session" button that will execute the following command: x11vnc -connect mydns.homeip.net:5500

That's all I really want for now. Other buttons I have in the windows version of my application offer users the ability to send me a quick e-mail, go to paypal's website, as well as auto-dial me via Skype if it's installed on their PC. But this stuff is secondary priority.

What should I do to get something like this created for Ubuntu?

Here's a picture of the Windows version of my app that I'd like to make for Ubuntu:
http://www.davestechsupport.com/new%20images/vdave2interface.jpg

nanotube
March 2nd, 2008, 02:18 AM
the simplest thing to do would be to have a shell script, which gives you a list of options and you can enter a number for what you want to do, and then executes whatever it is you want executed.

If you really want a gui, you could present the list of options in a zenity list dialog (man zenity for details)

hope that gets you started. :)

Kazade
March 2nd, 2008, 01:43 PM
Either that, or take a look at PyGTK + Python. :)

diablo75
March 3rd, 2008, 12:30 AM
I'm trying to install PyGTK right now.

I downloaded the latest source code for the program and extracted into a folder. I couldn't find specific documentation for installing PyGTK, but a generic blog about compiling source code suggested I start by issuing a ./configure command.

This started off a long list of stuff, which ended with this error:

checking for GLIB - version >= 2.8.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: gobject is required to build pygtk?

The config.log file contains the following:


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by pygtk configure 2.12.1, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = zeke-desktop
uname -m = i686
uname -r = 2.6.22-14-386
uname -s = Linux
uname -v = #1 Tue Feb 12 07:12:19 UTC 2008

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /home/zeke/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2113: checking for a BSD-compatible install
configure:2169: result: /usr/bin/install -c
configure:2180: checking whether build environment is sane
configure:2223: result: yes
configure:2288: checking for gawk
configure:2304: found /usr/bin/gawk
configure:2315: result: gawk
configure:2326: checking whether make sets $(MAKE)
configure:2347: result: yes
configure:2543: checking for style of include used by make
configure:2571: result: GNU
configure:2644: checking for gcc
configure:2660: found /usr/bin/gcc
configure:2671: result: gcc
configure:2909: checking for C compiler version
configure:2916: gcc --version >&5
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2919: $? = 0
configure:2926: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2929: $? = 0
configure:2936: gcc -V >&5
gcc: '-V' option must have argument
configure:2939: $? = 1
configure:2962: checking for C compiler default output file name
configure:2989: gcc conftest.c >&5
configure:2992: $? = 0
configure:3030: result: a.out
configure:3047: checking whether the C compiler works
configure:3057: ./a.out
configure:3060: $? = 0
configure:3077: result: yes
configure:3084: checking whether we are cross compiling
configure:3086: result: no
configure:3089: checking for suffix of executables
configure:3096: gcc -o conftest conftest.c >&5
configure:3099: $? = 0
configure:3123: result:
configure:3129: checking for suffix of object files
configure:3155: gcc -c conftest.c >&5
configure:3158: $? = 0
configure:3181: result: o
configure:3185: checking whether we are using the GNU C compiler
configure:3214: gcc -c conftest.c >&5
configure:3220: $? = 0
configure:3237: result: yes
configure:3242: checking whether gcc accepts -g
configure:3272: gcc -c -g conftest.c >&5
configure:3278: $? = 0
configure:3377: result: yes
configure:3394: checking for gcc option to accept ISO C89
configure:3468: gcc -c -g -O2 conftest.c >&5
configure:3474: $? = 0
configure:3497: result: none needed
configure:3517: checking dependency style of gcc
configure:3607: result: gcc3
configure:3629: checking for bind_textdomain_codeset
configure:3685: gcc -o conftest -g -O2 conftest.c >&5
configure:3691: $? = 0
configure:3709: result: yes
configure:3728: checking build system type
configure:3746: result: i686-pc-linux-gnu
configure:3768: checking host system type
configure:3783: result: i686-pc-linux-gnu
configure:3805: checking for some Win32 platform
configure:3815: result: no
configure:3828: checking for native Win32
configure:3838: result: no
configure:3929: checking for a sed that does not truncate output
configure:3985: result: /bin/sed
configure:3988: checking for grep that handles long lines and -e
configure:4062: result: /bin/grep
configure:4067: checking for egrep
configure:4145: result: /bin/grep -E
configure:4161: checking for ld used by gcc
configure:4228: result: /usr/bin/ld
configure:4237: checking if the linker (/usr/bin/ld) is GNU ld
configure:4252: result: yes
configure:4257: checking for /usr/bin/ld option to reload object files
configure:4264: result: -r
configure:4282: checking for BSD-compatible nm
configure:4331: result: /usr/bin/nm -B
configure:4335: checking whether ln -s works
configure:4339: result: yes
configure:4346: checking how to recognize dependent libraries
configure:4532: result: pass_all
configure:5062: checking how to run the C preprocessor
configure:5102: gcc -E conftest.c
configure:5108: $? = 0
configure:5139: gcc -E conftest.c
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
configure:5145: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "pygtk"
| #define PACKAGE_TARNAME "pygtk"
| #define PACKAGE_VERSION "2.12.1"
| #define PACKAGE_STRING "pygtk 2.12.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk"
| #define PYGTK_MAJOR_VERSION 2
| #define PYGTK_MINOR_VERSION 12
| #define PYGTK_MICRO_VERSION 1
| #define PACKAGE "pygtk"
| #define VERSION "2.12.1"
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5178: result: gcc -E
configure:5207: gcc -E conftest.c
configure:5213: $? = 0
configure:5244: gcc -E conftest.c
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
configure:5250: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "pygtk"
| #define PACKAGE_TARNAME "pygtk"
| #define PACKAGE_VERSION "2.12.1"
| #define PACKAGE_STRING "pygtk 2.12.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk"
| #define PYGTK_MAJOR_VERSION 2
| #define PYGTK_MINOR_VERSION 12
| #define PYGTK_MICRO_VERSION 1
| #define PACKAGE "pygtk"
| #define VERSION "2.12.1"
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5288: checking for ANSI C header files
configure:5318: gcc -c -g -O2 conftest.c >&5
configure:5324: $? = 0
configure:5423: gcc -o conftest -g -O2 conftest.c >&5
configure:5426: $? = 0
configure:5432: ./conftest
configure:5435: $? = 0
configure:5452: result: yes
configure:5476: checking for sys/types.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for sys/stat.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for stdlib.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for string.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for memory.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for strings.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for inttypes.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for stdint.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5476: checking for unistd.h
configure:5497: gcc -c -g -O2 conftest.c >&5
configure:5503: $? = 0
configure:5519: result: yes
configure:5546: checking dlfcn.h usability
configure:5563: gcc -c -g -O2 conftest.c >&5
configure:5569: $? = 0
configure:5583: result: yes
configure:5587: checking dlfcn.h presence
configure:5602: gcc -E conftest.c
configure:5608: $? = 0
configure:5622: result: yes
configure:5655: checking for dlfcn.h
configure:5663: result: yes
configure:5680: checking the maximum length of command line arguments
configure:5792: result: 98304
configure:5804: checking command to parse /usr/bin/nm -B output from gcc object
configure:5909: gcc -c -g -O2 conftest.c >&5
configure:5912: $? = 0
configure:5916: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
configure:5919: $? = 0
configure:5971: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:5974: $? = 0
configure:6012: result: ok
configure:6016: checking for objdir
configure:6031: result: .libs
configure:6123: checking for ar
configure:6139: found /usr/bin/ar
configure:6150: result: ar
configure:6219: checking for ranlib
configure:6235: found /usr/bin/ranlib
configure:6246: result: ranlib
configure:6315: checking for strip
configure:6331: found /usr/bin/strip
configure:6342: result: strip
configure:6628: checking if gcc supports -fno-rtti -fno-exceptions
configure:6646: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:6650: $? = 0
configure:6663: result: no
configure:6678: checking for gcc option to produce PIC
configure:6910: result: -fPIC
configure:6918: checking if gcc PIC flag -fPIC works
configure:6936: gcc -c -g -O2 -fPIC -DPIC conftest.c >&5
configure:6940: $? = 0
configure:6953: result: yes
configure:6981: checking if gcc static flag -static works
configure:7009: result: yes
configure:7019: checking if gcc supports -c -o file.o
configure:7040: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:7044: $? = 0
configure:7066: result: yes
configure:7092: checking whether the gcc linker (/usr/bin/ld) supports shared libraries
configure:8073: result: yes
configure:8094: checking whether -lc should be explicitly linked in
configure:8099: gcc -c -g -O2 conftest.c >&5
configure:8102: $? = 0
configure:8117: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1
configure:8120: $? = 0
configure:8132: result: no
configure:8140: checking dynamic linker characteristics
configure:8754: result: GNU/Linux ld.so
configure:8763: checking how to hardcode library paths into programs
configure:8788: result: immediate
configure:8802: checking whether stripping libraries is possible
configure:8807: result: yes
configure:9609: checking if libtool supports shared libraries
configure:9611: result: yes
configure:9614: checking whether to build shared libraries
configure:9635: result: yes
configure:9638: checking whether to build static libraries
configure:9642: result: no
configure:9735: creating libtool
configure:10187: checking for a Python interpreter with version >= 2.3.5
configure:10202: python -c import sys, string # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. minver = map(int, string.split('2.3.5', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
configure:10205: $? = 0
configure:10212: result: python
configure:10220: checking for python
configure:10238: found /usr/bin/python
configure:10250: result: /usr/bin/python
configure:10270: checking for python version
configure:10277: result: 2.5
configure:10289: checking for python platform
configure:10296: result: linux2
configure:10303: checking for python script directory
configure:10311: result: ${prefix}/lib/python2.5/site-packages
configure:10320: checking for python extension module directory
configure:10328: result: ${exec_prefix}/lib/python2.5/site-packages
configure:10343: checking for headers required to compile python extensions
configure:10371: gcc -E -I/usr/include/python2.5 -I/usr/include/python2.5 conftest.c
configure:10377: $? = 0
configure:10382: result: found
configure:10400: checking for PySignal_SetWakeupFd in Python.h
configure:10427: gcc -c -g -O2 -Wall -Werror -I/usr/include/python2.5 conftest.c >&5
cc1: warnings being treated as errors
conftest.c: In function 'main':
conftest.c:29: warning: implicit declaration of function 'PySignal_SetWakeupFd'
configure:10433: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "pygtk"
| #define PACKAGE_TARNAME "pygtk"
| #define PACKAGE_VERSION "2.12.1"
| #define PACKAGE_STRING "pygtk 2.12.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk"
| #define PYGTK_MAJOR_VERSION 2
| #define PYGTK_MINOR_VERSION 12
| #define PYGTK_MICRO_VERSION 1
| #define PACKAGE "pygtk"
| #define VERSION "2.12.1"
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
| #include <Python.h>
| int
| main ()
| {
| PySignal_SetWakeupFd(0);
| ;
| return 0;
| }
configure:10447: result: no
configure:10468: checking for python module thread
configure:10494: result: yes
configure:10567: checking whether to enable threading in pygtk
configure:10572: result: yes
configure:10661: checking for pkg-config
configure:10679: found /usr/bin/pkg-config
configure:10691: result: /usr/bin/pkg-config
configure:10720: checking pkg-config is at least version 0.16
configure:10723: result: yes
configure:10741: checking for GLIB - version >= 2.8.0
configure:10901: result: no
configure:10939: gcc -o conftest -g -O2 conftest.c >&5
conftest.c:26:18: error: glib.h: No such file or directory
conftest.c: In function 'main':
conftest.c:32: error: 'glib_major_version' undeclared (first use in this function)
conftest.c:32: error: (Each undeclared identifier is reported only once
conftest.c:32: error: for each function it appears in.)
conftest.c:32: error: 'glib_minor_version' undeclared (first use in this function)
conftest.c:32: error: 'glib_micro_version' undeclared (first use in this function)
configure:10945: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "pygtk"
| #define PACKAGE_TARNAME "pygtk"
| #define PACKAGE_VERSION "2.12.1"
| #define PACKAGE_STRING "pygtk 2.12.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk"
| #define PYGTK_MAJOR_VERSION 2
| #define PYGTK_MINOR_VERSION 12
| #define PYGTK_MICRO_VERSION 1
| #define PACKAGE "pygtk"
| #define VERSION "2.12.1"
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
|
| #include <glib.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
| ;
| return 0;
| }
configure:10979: error: gobject is required to build pygtk?

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_ATK_CFLAGS_set=
ac_cv_env_ATK_CFLAGS_value=
ac_cv_env_ATK_LIBS_set=
ac_cv_env_ATK_LIBS_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_GTK210_CFLAGS_set=
ac_cv_env_GTK210_CFLAGS_value=
ac_cv_env_GTK210_LIBS_set=
ac_cv_env_GTK210_LIBS_value=
ac_cv_env_GTK212_CFLAGS_set=
ac_cv_env_GTK212_CFLAGS_value=
ac_cv_env_GTK212_LIBS_set=
ac_cv_env_GTK212_LIBS_value=
ac_cv_env_GTKUNIXPRINT_CFLAGS_set=
ac_cv_env_GTKUNIXPRINT_CFLAGS_value=
ac_cv_env_GTKUNIXPRINT_LIBS_set=
ac_cv_env_GTKUNIXPRINT_LIBS_value=
ac_cv_env_GTK_CFLAGS_set=
ac_cv_env_GTK_CFLAGS_value=
ac_cv_env_GTK_LIBS_set=
ac_cv_env_GTK_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBGLADE_CFLAGS_set=
ac_cv_env_LIBGLADE_CFLAGS_value=
ac_cv_env_LIBGLADE_LIBS_set=
ac_cv_env_LIBGLADE_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PANGOCAIRO_CFLAGS_set=
ac_cv_env_PANGOCAIRO_CFLAGS_value=
ac_cv_env_PANGOCAIRO_LIBS_set=
ac_cv_env_PANGOCAIRO_LIBS_value=
ac_cv_env_PANGO_CFLAGS_set=
ac_cv_env_PANGO_CFLAGS_value=
ac_cv_env_PANGO_LIBS_set=
ac_cv_env_PANGO_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PYCAIRO_CFLAGS_set=
ac_cv_env_PYCAIRO_CFLAGS_value=
ac_cv_env_PYCAIRO_LIBS_set=
ac_cv_env_PYCAIRO_LIBS_value=
ac_cv_env_PYGOBJECT_CFLAGS_set=
ac_cv_env_PYGOBJECT_CFLAGS_value=
ac_cv_env_PYGOBJECT_LIBS_set=
ac_cv_env_PYGOBJECT_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_bind_textdomain_codeset=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_PYTHON=/usr/bin/python
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_pathless_PYTHON=python
am_cv_python_platform=linux2
am_cv_python_pyexecdir='${exec_prefix}/lib/python2.5/site-packages'
am_cv_python_pythondir='${prefix}/lib/python2.5/site-packages'
am_cv_python_version=2.5
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_SED=/bin/sed
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
lt_cv_sys_max_cmd_len=98304
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"'
lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'
py_cv_mod_thread_=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/zeke/Desktop/pygtk-2.12.1/missing --run aclocal-1.9 '
ACLOCAL_AMFLAGS='-I m4 -I .'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/zeke/Desktop/pygtk-2.12.1/missing --run tar'
AR='ar'
AS='as'
ATK_CFLAGS=''
ATK_LIBS=''
AUTOCONF='${SHELL} /home/zeke/Desktop/pygtk-2.12.1/missing --run autoconf'
AUTOHEADER='${SHELL} /home/zeke/Desktop/pygtk-2.12.1/missing --run autoheader'
AUTOMAKE='${SHELL} /home/zeke/Desktop/pygtk-2.12.1/missing --run automake-1.9'
AWK='gawk'
BUILD_ATK_FALSE=''
BUILD_ATK_TRUE=''
BUILD_GTKUNIXPRINT_FALSE=''
BUILD_GTKUNIXPRINT_TRUE=''
BUILD_GTK_FALSE=''
BUILD_GTK_TRUE=''
BUILD_LIBGLADE_FALSE=''
BUILD_LIBGLADE_TRUE=''
BUILD_PANGOCAIRO_FALSE=''
BUILD_PANGOCAIRO_TRUE=''
BUILD_PANGO_FALSE=''
BUILD_PANGO_TRUE=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=' '
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='dlltool'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
ENABLE_DOCS_FALSE=''
ENABLE_DOCS_TRUE='#'
EXEEXT=''
GLIB_CFLAGS=''
GLIB_GENMARSHAL=''
GLIB_LIBS=''
GLIB_MKENUMS=''
GOBJECT_QUERY=''
GREP='/bin/grep'
GTK210_CFLAGS=''
GTK210_LIBS=''
GTK212_CFLAGS=''
GTK212_LIBS=''
GTKUNIXPRINT_CFLAGS=''
GTKUNIXPRINT_LIBS=''
GTK_CFLAGS=''
GTK_LIBS=''
HAVE_GTK_2_10=''
HAVE_GTK_2_10_FALSE=''
HAVE_GTK_2_10_TRUE=''
HAVE_GTK_2_12=''
HAVE_GTK_2_12_FALSE=''
HAVE_GTK_2_12_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBGLADE_CFLAGS=''
LIBGLADE_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/zeke/Desktop/pygtk-2.12.1/missing --run makeinfo'
OBJDUMP='objdump'
OBJEXT='o'
OS_WIN32_FALSE=''
OS_WIN32_TRUE='#'
PACKAGE='pygtk'
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk'
PACKAGE_NAME='pygtk'
PACKAGE_STRING='pygtk 2.12.1'
PACKAGE_TARNAME='pygtk'
PACKAGE_VERSION='2.12.1'
PANGOCAIRO_CFLAGS=''
PANGOCAIRO_LIBS=''
PANGO_CFLAGS=''
PANGO_LIBS=''
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PLATFORM_WIN32_FALSE=''
PLATFORM_WIN32_TRUE='#'
PYCAIRO_CFLAGS=''
PYCAIRO_LIBS=''
PYGOBJECT_CFLAGS=''
PYGOBJECT_DATADIR=''
PYGOBJECT_FIXXREF=''
PYGOBJECT_INCLUDEDIR=''
PYGOBJECT_LIBS=''
PYGOBJECT_PYGDOCS=''
PYGTK_CODEGEN_DEFINES=''
PYGTK_MAJOR_VERSION='2'
PYGTK_MICRO_VERSION='1'
PYGTK_MINOR_VERSION='12'
PYTHON='/usr/bin/python'
PYTHON_EXEC_PREFIX='${exec_prefix}'
PYTHON_INCLUDES='-I/usr/include/python2.5'
PYTHON_PLATFORM='linux2'
PYTHON_PREFIX='${prefix}'
PYTHON_VERSION='2.5'
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STRIP='strip'
THREADING_CFLAGS=''
VERSION='2.12.1'
XSLTPROC=''
ac_ct_CC='gcc'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='/home/zeke/Desktop/pygtk-2.12.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgpyexecdir='${pyexecdir}/pygtk'
pkgpythondir='${pythondir}/pygtk'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir='${exec_prefix}/lib/python2.5/site-packages'
pythondir='${prefix}/lib/python2.5/site-packages'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "pygtk"
#define PACKAGE_TARNAME "pygtk"
#define PACKAGE_VERSION "2.12.1"
#define PACKAGE_STRING "pygtk 2.12.1"
#define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk"
#define PYGTK_MAJOR_VERSION 2
#define PYGTK_MINOR_VERSION 12
#define PYGTK_MICRO_VERSION 1
#define PACKAGE "pygtk"
#define VERSION "2.12.1"
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1

configure: exit 1

I have no idea what to do about this...

Whiffle
March 3rd, 2008, 12:36 AM
I'm pretty sure pyGTK is in apt, look for it with synaptic.

Steveway
March 3rd, 2008, 12:38 AM
Why not simply use Synaptic to install it?
This is Linux, and if you are really a "tech-guy" then you should know that.

WW
March 3rd, 2008, 12:42 AM
The Ubuntu package is python-gtk2 (http://packages.ubuntu.com/gutsy/python-gtk2).

diablo75
March 3rd, 2008, 12:50 AM
I had checked synaptic earlier, but I was looking for "pygtk" and not "python-gtk2"

It's installing right now; thanks for the help guys.

diablo75
March 3rd, 2008, 01:08 AM
Ok. One more dumb question:

I've installed:

python-gtk2
python-gtk2-dev
python-gtk2-doc
python-gtk2-tutorial

using Synaptic Package Manager.

Now what? There is no shortcut for the program anywhere in my applications menu, and if I open a terminal and type python<tab><tab>, all I see listed is:

python python2.5 python2.5-config python-config

If I type pygtk<tab><tab> I get:

pygettext pygettext2.5 pygtk-codegen-2.0 pygtk-demo

Am I still missing a package, or am I looking for the wrong file again?

WW
March 3rd, 2008, 01:23 AM
PyGTK (http://www.pygtk.org/) is not a program that you run. It is a library that you use to create a GUI interface in a Python program. For example, the program that I posted in this thread (http://ubuntuforums.org/showthread.php?t=239082) uses PyGTK.

nanotube
March 3rd, 2008, 05:38 AM
since the OP seems unfamiliar with python and gtk, maybe a bash script would be a more feasible idea :)

nanotube
March 3rd, 2008, 06:45 AM
since the OP seems unfamiliar with python and gtk, maybe a bash script would be a more feasible idea :)

in fact, here's one that would do the trick:

#!/bin/bash

while [ 1 -eq 1 ] ; do
COMMAND=$(zenity --list --radiolist --column "Choice" --column "Action" --column "Command" --print-column 2 FALSE "Say bla" "echo bla" FALSE "Say mu" "echo mu" FALSE "Give me a message dialog" "zenity --info --title Stuff --text Morestuff" FALSE "Run my VNC session" "x11vnc -connect mydns.homeip.net:5500")
$COMMAND &
if [ -z "$COMMAND" ]; then
exit
fi
done

just change the names of the actions and the actual commands you want executed... and you have your command executor.

quick and dirty, but works :)