[SOLVED] ruby-panelapplet2 won't compile (i686 & x86_64)

Hi!
I already wrote forum post in 64 bit section, but today I got to i686 machine and the error is the same, that damned package won't compile
Can anyone help getting this compiled? Any hints?
Errors are as follows:
Package 'glipper' has no Name: field
checking for GCC... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for libpanelapplet-2.0 version (>= 2.6.0)... yes
checking for G_PLATFORM_WIN32... no
creating rbpanelappletversion.h
creating Makefile
creating Makefile
/tmp/yaourt-tmp-user/aur-ruby-panelapplet2/ruby-panelapplet2/src/ruby-gnome2-all-0.19.1/glib/src/lib/pkg-config.rb:85:in `name': undefined method `[]' for nil:NilClass (NoMethodError)
    from /tmp/yaourt-tmp-user/aur-ruby-panelapplet2/ruby-panelapplet2/src/ruby-gnome2-all-0.19.1/glib/src/lib/mkmf-gnome2.rb:165:in `create_pkg_config_file'
    from /tmp/yaourt-tmp-user/aur-ruby-panelapplet2/ruby-panelapplet2/src/ruby-gnome2-all-0.19.1/panel-applet/extconf.rb:30:in `<main>'
extconf.rb: Leaving directory 'panel-applet'
That is driving me crazy, coz I can't get SSHMenu work properly and that is one of the tools I use all the time
If someone has that package in x86_64, please send that to me (edzis123[@]inbox.lv). Please remove all numbers and brackets from there
If the package is not available, alternate way is sending the files in the package, I suppose these should be like this (I took sample from i686):
/usr/lib/ruby/site_ruby/1.9.1/panelapplet2.rb
/usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/panelapplet2_main.so
/usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/panelapplet2.so
Thanx in advance.
Last edited by Kirurgs (2010-02-21 21:32:26)

Hi!
After spending quite a lot of time on this, I found the error why I couldn't compile almost any of ruby packages including ruby-gnomepanel2.
To my big surprise, pacman -R glipper fixed the issue and I'm now using sshmenu w/o any issues.
Ruby seems to broke if some additional (possibly incorrect) packages are installed, which it shouldn't!! Uff...
regards
Kirurgs
Last edited by Kirurgs (2010-02-21 21:32:57)

Similar Messages

  • [solved] Vanilla kernel won't compile on vanilla install

    I am new to Arch Linux but not new to other Linux distros. I've encountered somewhat of a strange problem. I wanted to test out some custom kernel modifications on Arch Linux. (Specifically, I have been trying to implement unRAID [ http://lime-technology.com/ ] into a Arch Linux install.) I ran into some problems compiling the modified 2.6.36.2 kernel and figured it was just my modifications. But to my surprise, I am unable to even compile a vanilla kernel on a fresh install (base and devel) of Arch Linux. After further testing, it seems to affect other kernel versions, but only older kernel version. For example,vanilla 2.6.38 compiles fine. I've outlined my process below.
    1. Fresh install of Arch Linux (base and devel)
    2. Installed OpenSSH and configured so I could connect remotely.
    3. Prepare source tree: http://pastie.org/1929380
    4. Accepted defaults on make menuconfig
    5. Full build log: https://pastee.org/gvng5
    Then it tanks on this error:
    CC arch/x86/mm/mmio-mod.o
    LD arch/x86/mm/mmiotrace.o
    LD arch/x86/mm/built-in.o
    LDS arch/x86/vdso/vdso32/vdso32.lds
    AS arch/x86/vdso/vdso32/note.o
    AS arch/x86/vdso/vdso32/int80.o
    VDSO arch/x86/vdso/vdso32-int80.so.dbg
    gcc: error: elf_i386: No such file or directory
    OBJCOPY arch/x86/vdso/vdso32-int80.so
    objcopy: 'arch/x86/vdso/vdso32-int80.so.dbg': No such file
    make[2]: *** [arch/x86/vdso/vdso32-int80.so] Error 1
    make[1]: *** [arch/x86/vdso] Error 2
    make: *** [arch/x86] Error 2
    I've tested on other kernel (old-ish) versions and I get the same error. Any ideas?
    Last edited by TaterSalad (2011-05-20 04:49:15)

    I don't what the problem is, but I could not get it to compile with gcc 4.6. I did do a netinstall the first time around though with all the latest packages. Maybe there is some updated package throwing the error? Maybe binutils? No matter though. I don't need gcc 4.6 anyways. I reinstalled Arch with a non-net install (to get the older packages) and it worked. Thanks for the help graysky.
    If anyone is in the mood for hunting bugs, you might try a fresh netinstall and reproducing my original steps to see if you can reproduce it. Might be worth reporting.
    Last edited by TaterSalad (2011-05-20 14:26:25)

  • [SOLVED] mplayer-svn won't compile

    Wanted to try one application that needs svn version of mplayer to run. Well, i'm not able to compile it
    liba52/imdct_3dnow.h:289: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
    liba52/imdct_3dnow.h:257: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
    liba52/imdct_3dnow.h:117: error: 'asm' operand has impossible constraints
    liba52/imdct_3dnow.h:283: error: 'asm' operand has impossible constraints
    liba52/imdct.c: In function 'ifft16':
    liba52/imdct.c:294: warning: array subscript is below array bounds
    liba52/imdct.c: In function 'ifft64_c':
    liba52/imdct.c:310: warning: array subscript is below array bounds
    liba52/imdct.c: In function 'ifft128_c':
    liba52/imdct.c:318: warning: array subscript is below array bounds
    liba52/imdct.c:322: warning: array subscript is below array bounds
    make: *** [liba52/imdct.o] Error 1
    Google found something: http://gcc.gnu.org/ml/gcc-bugs/2009-05/msg00633.html
    So is there any chance i could compile it? Need to downgrade gcc?
    Last edited by Dzaro (2009-05-09 09:30:58)

    Oh, didn't know that
    Thank you
    Edit: yes, it's working now
    Last edited by Dzaro (2009-05-09 09:30:36)

  • [solved] acerhk - won't compile anymore.

    On my 8y old Acer Travelmate i need acerhk to get wifi working.
    Since the latest kernels it won't compile anymore without errors.
    Anyone get some idea how to get arround with this?
    Output:
    make -C /lib/modules/3.8.4-1-ARCH/build SUBDIRS=/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35 modules
    make[1]: Entering directory `/usr/src/linux-3.8.4-1-ARCH'
    CC [M] /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.o
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2933:23: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »model_init«
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2958:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »acerhk_remove«
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2960:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »acerhk_probe«
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3042:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »acerhk_remove«
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3068:12: Fehler: »acerhk_probe« ist hier nicht deklariert (nicht in einer Funktion)
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3069:2: Fehler: Implizite Deklaration der Funktion »__devexit_p« [-Werror=implicit-function-declaration]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3069:25: Fehler: »acerhk_remove« ist hier nicht deklariert (nicht in einer Funktion)
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:136:14: Warnung: »reg2« definiert, aber nicht verwendet [-Wunused-variable]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:386:13: Warnung: »enable_dritek_keyboard« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:392:13: Warnung: »disable_dritek_keyboard« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:764:12: Warnung: »get_cmos_index« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:876:29: Warnung: »find_hk_area« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:1317:20: Warnung: »setup_model_features« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:1980:20: Warnung: »probe_model« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2205:13: Warnung: »init_input« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2303:13: Warnung: »release_input« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2671:12: Warnung: »acerhk_proc_init« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2783:13: Warnung: »acerhk_proc_cleanup« definiert, aber nicht verwendet [-Wunused-function]
    /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2925:26: Warnung: »acerhk_misc_dev« definiert, aber nicht verwendet [-Wunused-variable]
    cc1: Einige Warnungen werden als Fehler behandelt
    make[2]: *** [/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.o] Fehler 1
    make[1]: *** [_module_/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35] Fehler 2
    make[1]: Leaving directory `/usr/src/linux-3.8.4-1-ARCH'
    make: *** [acerhk.ko] Fehler 2
    ==> FEHLER: Ein Fehler geschah in build().
    Last edited by lemondreas (2013-03-27 14:42:04)

    sure.
    Make sure to have linux-headers installed as the same version lie your kernel.
    The source for acerhk-0.5.35.tgz is unavailable so i downloaded it from here http://filesocial.com/3ex2d4 and put it in the same folder as PKBUILD
    My PKBUILD looks like this:
    # $Id: PKGBUILD 23215 2010-08-08 21:04:28Z cbrannon $
    # Maintainer: Corrado Primier <[email protected]>
    # Contributor: Marco Fister <[email protected]>
    pkgname=acerhk
    pkgver=0.5.35
    pkgrel=26
    pkgdesc="Acer hotkey driver"
    url="http://www.cakey.de/acerhk/"
    arch=('i686') # Unavailable for x86_64
    license=('GPL')
    depends=('linux>=3.0.0')
    makedepends=('linux-headers>=3.0.0')
    source=(acerhk-0.5.35.tgz acerhk.rc
    2.6.30.patch kernelversion.patch 5100.patch 2.6.36.patch)
    install=acerhk.install
    _kernver=`uname -r`
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    sed -i 's/CFLAGS/EXTRA_CFLAGS/' Makefile
    sed -i 's/__devinit//g; s/__devexit_p//g; s/__devexit//' acerhk.c
    patch -Np1 -i "${srcdir}/5100.patch" || return 1
    patch -Np1 -i "${srcdir}/2.6.30.patch" || return 1
    patch -Np0 -i "${srcdir}/2.6.36.patch" || return 1
    patch -N -p1 < "$srcdir/kernelversion.patch" || return 1
    sed -i 's@linux/config.h@linux/input.h@' "${srcdir}/${pkgname}-${pkgver}/acerhk.c"
    # Set KERNELSRC. The makefile tries to autodetect it with uname,
    # but that is unreliable.
    make CONFIG_FUNCTION_TRACER= KERNELSRC="/lib/modules/${_kernver}/build" acerhk.ko || return 1
    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/acerhk.ko" \
    "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/block/acerhk.ko" || return 1
    install -Dm755 "${srcdir}/acerhk.rc" "${pkgdir}/etc/rc.d/acerhk" || return 1
    # vim:set ts=2 sw=2 et:
    md5sums=('05255919f312cb76af473a760c284433'
    '935584b3e4bfbb3af8460558e5b98bb5'
    '2a0bc99e5b12e25096441df4d53d7df7'
    'fd2ef062ecbc9d670e1b42aa5866d32d'
    '8966a93e66200a535179cf9eb689fe4d'
    'd257a4e9223ebfde48b9608805df9c99')
    By the way:
    Is there any possible way to get acerhk work with systemd?
    Like activating the wifi-LED along the boot process and manually control ist with "sysctl start/stop acerhk"?
    Last edited by lemondreas (2013-03-28 18:15:23)

  • [Solved] Sauerbraten won't compile from ABS

    I'm having some problems trying to compile Sauerbraten from the ABS.
    I edited the PKGBUILD to match the new version and removed the md5sums.:
    [kevin@banaan sauerbraten]$ cat PKGBUILD
    # $Id: PKGBUILD,v 1.10 2008/08/03 02:09:27 Snowman Exp $
    # Contributor: Jaroslaw Swierczynski <[email protected]>
    # Contributor: Roman Kyrylych <[email protected]>
    # Contributor: Christoph Siegenthaler <[email protected]>
    pkgname=sauerbraten
    pkgver=2009_05_04_trooper_edition
    pkgrel=1
    pkgdesc="Sauerbraten is an improved version of the Cube engine"
    arch=('i686' 'x86_64')
    url="http://www.sauerbraten.org/"
    license=('ZLIB')
    depends=('sdl_mixer' 'sdl_image' 'libgl' 'mesa' \
    'hicolor-icon-theme' 'desktop-file-utils')
    install=sauerbraten.install
    source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_${pkgver}_linux.tar
    .bz2
    http://downloads.sourceforge.net/$pkgname/patch_2008_06_20_linux.tar.bz2
    sauerbraten-client
    sauerbraten-server
    sauerbraten.confd
    sauerbraten.desktop
    sauerbraten.png
    license.txt)
    md5sums=()
    build() {
    cd $startdir/src/$pkgname/src
    make || return 1
    make DESTDIR=$startdir/pkg install
    cd $startdir/src/sauerbraten
    install -D bin_unix/native_client $startdir/pkg/opt/sauerbraten/bin/linux_clie
    nt
    install -D bin_unix/native_server $startdir/pkg/opt/sauerbraten/bin/linux_serv
    er
    cp -r data $startdir/pkg/opt/sauerbraten
    cp -r packages $startdir/pkg/opt/sauerbraten
    find $startdir/pkg -type d -name CVS -exec rm -rf '{}' \; 2> /dev/null
    install -Dm755 $startdir/src/sauerbraten-client $startdir/pkg/usr/bin/sauerbra
    ten-client
    install -Dm755 $startdir/src/sauerbraten-server $startdir/pkg/usr/bin/sauerbra
    ten-server
    install -Dm644 $startdir/src/sauerbraten.confd $startdir/pkg/etc/conf.d/sauerb
    raten
    install -Dm644 $startdir/src/sauerbraten.desktop $startdir/pkg/usr/share/appli
    cations/sauerbraten.desktop
    install -Dm644 $startdir/src/sauerbraten.png $startdir/pkg/usr/share/icons/hic
    olor/128x128/apps/sauerbraten.png
    install -Dm644 $startdir/src/license.txt $startdir/pkg/usr/share/licenses/saue
    rbraten/license.txt
    When trying to compile, this happens:
    ==> Starting build()...
    make -C enet/ all
    make[1]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
    Making all in include
    make[2]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
    /include'
    Making all in enet
    make[3]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
    /include/enet'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet/
    include/enet'
    make[3]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
    /include'
    make[3]: Nothing to be done for `all-am'.
    make[3]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet/
    include'
    make[2]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet/
    include'
    make[2]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet'
    make[1]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet'
    g++ -O3 -fomit-frame-pointer -Wall -fsigned-char -Ishared -Iengine -Ifpsgame -Ie
    net/include -I/usr/X11R6/include `sdl-config --cflags` -c -o engine/3dgui.o en
    gine/3dgui.cpp
    engine/3dgui.cpp:6:17: error: pch.h: No such file or directory
    engine/3dgui.cpp: In member function 'virtual void gui::tab(const char*, int)':
    engine/3dgui.cpp:110: error: 's_sprintf' was not declared in this scope
    engine/3dgui.cpp: In member function 'virtual void gui::slider(int&, int, int, i
    nt, char*)':
    engine/3dgui.cpp:262: error: 's_sprintf' was not declared in this scope
    engine/3dgui.cpp: In member function 'int gui::button_(const char*, int, const c
    har*, bool, bool)':
    engine/3dgui.cpp:552: error: 'tname' was not declared in this scope
    engine/3dgui.cpp:552: error: 's_sprintfd' was not declared in this scope
    engine/3dgui.cpp: In member function 'virtual void gui::end()':
    engine/3dgui.cpp:730: error: 'INTERSECT_MIDDLE' was not declared in this scope
    engine/3dgui.cpp:739: error: 'intersect_plane_line' was not declared in this sco
    pe
    engine/3dgui.cpp: In function 'void g3d_render()':
    engine/3dgui.cpp:963: error: 'cl' was not declared in this scope
    In file included from shared/cube.h:62:
    shared/tools.h: In member function 'T& vector<T>::add() [with T = gui]':
    engine/3dgui.cpp:923: instantiated from here
    shared/tools.h:290: error: cannot allocate an object of abstract type 'gui'
    engine/3dgui.cpp:34: note: because the following virtual functions are pure wi
    thin 'gui':
    shared/iengine.h:380: note: virtual int g3d_gui::texture(Texture*, float, in
    t, int, int, Texture*, const vec&, Texture*)
    shared/iengine.h:386: note: virtual char* g3d_gui::keyfield(const char*, int
    , int, int, const char*, int)
    shared/iengine.h:388: note: virtual void g3d_gui::textbox(const char*, int,
    int, int)
    make: *** [engine/3dgui.o] Error 1
    ==> ERROR: Build Failed.
    Aborting...
    I have no clue of how to fix this, any experts around?
    Thanks in advance!
    Last edited by kevin89 (2009-05-13 08:38:33)

    Have you tried removing patch_2008_06_20_linux.tar.bz2 from the sources array? Builds fine for me.

  • [SOLVED] Ruby 1.9.2

    I can't get the new Ruby to work. It's ruby 1.9.2 from Extra. Here is what I get when I run gem:
    [root@xhkr ruby]# gem
    /usr/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58:in `from_installed_gems'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:841:in `new'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:841:in `block in searcher'
    from <internal:prelude>:10:in `synchronize'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:840:in `searcher'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:479:in `find_files'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:983:in `load_plugins'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:1139:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/bin/gem:8:in `<main>'
    I think the package is not correctly built, I don't understand why there is still 1.9.1 in the path.
    I tried to remove the package, reinstall.. Same problem.
    But with my PKGBUILD it works :
    # $Id: PKGBUILD 84971 2010-07-06 01:35:46Z eric $
    # Maintainer: Allan McRae <[email protected]>
    # Contributor: John Proctor <[email protected]>
    # Contributor: Jeramy Rutley <[email protected]>
    pkgname=('ruby' 'ruby-docs')
    pkgver=1.9.2_p0
    _pkgver=1.9.2-p0
    _version=1.9.2
    pkgrel=1
    pkgdesc="An object-oriented language for quick and easy programming"
    arch=('i686' 'x86_64')
    url="http://www.ruby-lang.org/en/"
    license=('custom')
    makedepends=('gdbm' 'db' 'openssl' 'zlib' 'readline' 'tk')
    options=('!emptydirs')
    source=("ftp://ftp.ruby-lang.org/pub/ruby/1.9/${pkgname}-${_pkgver}.tar.bz2")
    md5sums=('d8a02cadf57d2571cd4250e248ea7e4b')
    sha1sums=('c0fc7e1047f1eac7e554e9818513593b0d398698')
    build() {
    cd "${srcdir}/${pkgname}-${_pkgver}"
    # see http://cvs.fedoraproject.org/viewvc/rpms/ruby/devel/
    #patch -p1 -i "${srcdir}/openssl-1.0.patch"
    ./configure --prefix=/usr --enable-shared --enable-pthread --with-ruby-version=${_version}
    make
    package_ruby()
    depends=('gdbm' 'db' 'openssl' 'zlib' 'readline')
    provides=('rubygems' 'rake')
    conflicts=('rubygems' 'rake')
    optdepends=('tk: for Ruby/TK')
    cd "${srcdir}/${pkgname}-${_pkgver}"
    make DESTDIR="${pkgdir}" install
    install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
    package_ruby-docs()
    pkgdesc="Documentation files for ruby"
    #arch=('any')
    depends=('ruby')
    cd "${srcdir}/${pkgname}-${_pkgver}"
    make -j1 DESTDIR="${pkgdir}" install-doc
    install -Dm644 COPYING "${pkgdir}/usr/share/licenses/ruby-docs/COPYING"
    The only difference is "--with-ruby-version=${_version}".
    Has anyone the same problem with the pre-compiled package of Ruby ?
    Edit : Working fine in my desktop box. So the Ruby from pacman is ok. Don't understand this strange behavior on my server. How can I remove *everything* from the ruby package, to try to reinstall it properly ?
    Last edited by Rydgel (2010-09-06 08:18:46)

    Hi awkwood,
    I probably should have clarified things a little more: I actually do get the same error message as the original poster. For instance, when I try to update gem as you suggested I get:
    sudo gem update --system
    Password:
    /usr/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:62:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:52:in `from_installed_gems'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:914:in `source_index'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:83:in `init_gemspecs'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:873:in `new'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:873:in `searcher'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:495:in `find_files'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:1034:in `load_plugins'
    from /usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:84:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/bin/gem:9:in `<main>'
    When I tried using the above renaming fix, however, that is when I got the other error message in my above post.
    I'm running ruby 1.9.2:
    ruby -v
    ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
    I'll try taking a look at the links you posted.
    Thanks for the suggestions
    Best,
    Keith

  • [Solved] Ruby - Gem bundle install no longer works

    Hi,
    I am new to Linux, Arch and Ruby.
    About 3 days ago I installed Arch on my virtualbox.
    After I was happy with my installation (openbox as WM) I installed ruby.
    I was able to install a project (Gemfile) using the command:
    gem bundle install (from the terminal)
    (That was after installing the bundle gem from within ruby: gem install bundle)
    Today, after updating my Arch system, I had to install that project again (for reasons related to the project), and I cannot.
    I write in the terminal:
    gem bundle install
    and get:
    ERROR:  While executing gem ... (RuntimeError)
        Unknown command bundle
    I searched the forums, but there's nothing relevant that I could find.
    Can someone help?
    Edit:
    After more tries and searches I have found:
    1. This has nothing to do with the Arch update as I feared.
    2. The command to run is "bundle install" not as I initially did.
    Apologies for cluttering the forum.
    Last edited by Tronn (2012-07-24 06:07:18)

    bradmccormack wrote:
    Hi mavenik,
    Whilst it is not the best way to do it, the following worked for me
    1) install gcc44 from AUR (you can probably use gcc45 too). If you are not sure how to do that please search the forums for installing from Aur or Aur wrappers (I use packer)
    packer -S gcc44.
    2) After it is installed temporarily rename your current gcc (4.7.x) 
    sudo mv /usr/bin/gcc /usr/bin/gcc4.7
    3) create a symlink to gcc4.4.x
    sudo ln -s /opt/gcc-4.4/gcc /usr/bin/gcc
    Test gcc version by doing
    gcc --version
    It should say 4.4.6 or similar
    4) install ruby1.8 or ruby-enterprise from Aur (if this is required for redmine)
    packer -S ruby-enterprise
    ruby will now be compiled using an older version of gcc and gems will install correctly.
    5) delete the symlink
    sudo unlink /usr/bin/gcc
    6) rename gcc4.7 back to gcc
    sudo mv /usr/bin/gcc4.7
    Test the version again to make sure it has reverted.
    Please note the proper way to do this would be to set ruby1.8 / ruby-enterprise to compile with the older gcc by setting CC in the pkgbuild.
    I'm not sure how to do that (had no luck) so the hacky solution above worked for me.
    Please check each command above before you use it to make sure it is safe and valid for you.
    Enjoy !
    You should be able to compile with the older gcc by putting CC=/path/to/your/compiler right before "make", like so:
    CC=/opt/gcc-4.4/gcc make
    YEAH! I got it working!  Here's what I did: install "gcc45" from the AUR, then compile ruby-enterprise by downloading the AUR package and running:
    CC=gcc-4.5 makepkg
    ... then install the package.  IT WORKS!
    Last edited by synthead (2012-04-23 13:52:39)

  • Code won't compile - array

    This is my first in depth attempt to understand the code for enabling arrays. I THINK I have a fairly simple problem, but the code won't compile and NetBeans is telling me I'm missing a symbol &/or class, which I just don't get. Here is the code for the Inventory1 module as well as the main module - what am I not seeing?
    Inventory1 module
    import java.util.Scanner;
    import static java.lang.System.out;
    public class Inventory1
      //declare and initialize variables
      int[] itemNumber = new int [5];
      String[] productName = new String[5];
      int[] stockAmount = new int[5];
      double[] productCost = new double[5];
      double[] totalValue = new double[5];
      int i;
      //int i = 0;
      //initialize scanner
      Scanner sc = new Scanner(System.in);
      Inventory1 info = new Inventory1
    public void inventoryInput()
      while (int i = 0; i < 5; i++)
         out.println("Please enter item number: "); //prompt - item number
         info.itemNumber[i] = sc.nextInt(); // input
         out.println( "Enter product name/description: "); //prompt - product name
         info.productName[i] = sc.nextLine(); // input
         out.println("Quantity in stock: "); // prompt - quantity
         int temp = sc.nextInt(); // capture temp number to verify
         if( temp <=0 )
         { // ensure stock amount is positive number
             out.println( "Inventory numbers must be positive. Please" +
                 "enter a correct value." ); // prompt for correct #
             temp = sc.nextInt(); // exit if statement
         else info.stockAmount[i] = temp; // input
         out.println("What is the product cost for each unit? "); // prompt - cost
         double temp2 = sc.nextDouble();
         if( temp <=0 )
             out.println( "Product cost must be a positive dollar " +
                  "amount. Please enter correct product cost." );
             temp2 = sc.nextDouble();
         else info.productCost[i] = temp2;
      out.println( "We hope this inventory program was helpful. Thank you for " +
          "using our program." );
      } // end method inventoryInput   
    }main module
    public class Main {
      public static void main(String[] args) { //start main method
            Inventory1 currentInventory = new Inventory1(); //call Inventory class
            currentInventory.inventoryInput();
    }

    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\Tammy\My Documents\School\JavaProgramming\Inventory\build\classes
    C:\Documents and Settings\Tammy\My Documents\School\JavaProgramming\Inventory\src\inventory\Inventory1.java:28: '(' or '[' expected
    public void inventoryInput()
    C:\Documents and Settings\Tammy\My Documents\School\JavaProgramming\Inventory\src\inventory\Inventory1.java:30: '.class' expected
    while (int i = 0; i < 5; i++)
    C:\Documents and Settings\Tammy\My Documents\School\JavaProgramming\Inventory\src\inventory\Inventory1.java:30: illegal start of type
    while (int i = 0; i < 5; i++)
    C:\Documents and Settings\Tammy\My Documents\School\JavaProgramming\Inventory\src\inventory\Inventory1.java:30: not a statement
    while (int i = 0; i < 5; i++)
    C:\Documents and Settings\Tammy\My Documents\School\JavaProgramming\Inventory\src\inventory\Inventory1.java:30: ';' expected
    while (int i = 0; i < 5; i++)
    5 errors
    BUILD FAILED (total time: 0 seconds)

  • Migrate Application Jdeveloper 11.1.1.0.2 to 11.1.2.2.0 - won´t compile

    Hi,
    I'm trying to migrate my application from JDev 11.1.1.0.2 to 11.1.2.2.0 but even after Jdev migrate to new version, the application won't compile correct. Seems that some classes wont recognize dependecies from other package. If i have a class in Web that import a class from Model, in compile time the console give me this kind a error: "package 'xxx.yyy.www' does not exist". If i open any class that gave me this error there isn't any warning or red line showing errors, in the line of the import i can use Ctrl + right click and go to the class without problems. The dependecies between projects (web, model and ejb) are correct. I dont know what is, any help will be appreciated.
    Thanks in advance,
    Alexandre Rocco.

    Hi
    I am facing the same problem when migrating from JDev 11.1.1.4.0 to JDev 11.1.2.2.0. Any idea?
    Regards,
    Ferez

  • JDeveloper 10.1.2.1 won't compile my code?

    Hi,
    I'm pretty new to JDeveloper, and Java in general.
    I've just downloaded and tried to run JDeveloper 10g (10.1.2.1.0, Build 1913) and I've having problems.
    When the application loads, I get a dialog message titled "Java Virtual Machine Launcher", with the message "Could not find the main class. Program will exit"
    JDeveloper then finishes loading.
    I've knocked up a quick JSP page, but it won't compile. I get the message "Internal compilation error, terminated with a fatal exception."
    Also, I've notived that if I go to Project Properties and try to look at Profiles->Development->Libraries, JDeveloper throws a NullPointerException.
    I've got JDeveloper 10.1.3 on my machine, and it has none of these problems?
    After looking around on the web, I'm thinking it might be a CLASS_PATH problem, but how can I confirm this, and how can I fix it?
    Any ideas on what is wrong would be appreciated?
    Thanks
    Thom

    Thanks thahn.
    That fixed the "Java Virtual Machine Launcher" error - I would never have thought spaces in the directory name could have caused this problem!
    The other problems remain though, so I still can't compile any code.

  • DG4ODBC MSSQL query works in sql, but won't compile in PL/SQL.

    I'm using DG4ODBC from 11g to query a SQL Server database. The query I'm using works in a SQL DEveloper SQL worksheet and sqlplus, but won't compile in a PL/SQL procedure.
    The query is
      INSERT
      INTO crm_labels
          accountid,
          label_name,
          cir_labelcode,
          cir_knownasname,
          cir_countryidname,
          parentaccountidname,
          cir_customertypecode1,
          cir_customertypecode2,
          cir_dealstatus
      SELECT "AccountId",
        REPLACE("Name",chr(0)) label_name,
        REPLACE("Cir_labelcode",chr(0)) ,
        REPLACE("Cir_knownasname",chr(0)),
        REPLACE("cir_countryidName",chr(0)),
        REPLACE("ParentAccountIdName",chr(0)),
        "Cir_customertypecode1",
        "Cir_customertypecode2",
        "Cir_dealstatus"
      FROM "dbo"."Account"@crmsvc
      WHERE "Cir_labelcode" IS NOT NULL;The error message is
    Error(1): ORA-04052: error occurred when looking up remote object dbo.Account@CRMSVC ORA-01948: identifier's name length (34) exceeds maximum (30)I'm guessing that it is attempting to describe additional columns in the Account table.
    If I remove the dbo,
      FROM "Account"@crmsvcI get
    Error(1): ORA-04052: error occurred when looking up remote object PUBLIC.Account@CRMSVC ORA-00604: error occurred at recursive SQL level 1 ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Microsoft][ODBC SQL Server Driver][SQL Serve which is less than helpful. However, if I try to use the same query to create a materialized view, I get.
    SQL Error: ORA-04052: error occurred when looking up remote object PUBLIC.Account@CRMSVC
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'Address1_TimeZoneRuleVersionNu'. {42S22,NativeErr = 207}[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'Address1_UTCConversionTimeZone'. {42S22,NativeErr = 207}[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'Address2_TimeZoneRuleVersionNu'. {42S22,NativeErr = 207}[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'Address2_UTCConversionTimeZone'. {42S22,NativeErr = 207}[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'Pias_NewLabelInDealNotificatio'. {42S22,NativeErr = 207}
    ORA-02063: preceding 2 lines from CRMSVCwhich seems to confim that in some circumstance, oracle will attempt to parse more than was asked for.
    Any work arounds?
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    DG4ODBC is also 11.2.0.3

    The gateway claims about this column "Address1_TimeZoneRuleVersionNu" which is not listed in your select list.
    When a gateway connection is established it first checks out all columns of the table you want to select to determine the data types and then it fetches the data for the columns you want to select. But there's also an exception - when you use functions the gateway is not able to translate into the syntax of the foreign database. in this case ALL columns will be fetched into the Oracle database and the result is processed locally (post processing).
    You're using replace function which won't be mapped to the foreign database equivalent using DG4ODBC so it will post process the result and fetch from all columns all the data into the Oracle database. Your table contains a column which exceeds the 30 character limitation of Oracle, hence the select will fail.
    The only work around is to create a view on the foreign database side which reduces the column name length to 30 characters or less.

  • SQL query won't compile based on DB role privileges

    Can someone give me an explanation why the SQL query in a report won't compile if an object is owned by another schema and the parsing schema is given privileges to the table via a role grant?
    Or to phrase it another way, why do we have to make direct grants on tables to the parsing schema for reports based on SQL queries that access tables in other schemas?
    Thanks in advance,
    Paul

    Paul - In Oracle, roles are not enabled during the execution of definer's rights stored procedures which is the environment in which all Application Express application code is parsed/executed. There are scads of posts about this topic in this forum.
    Scott

  • Robohelp for Word won't compile

     Hi,I've been trying to get one of my projects to work in Robohelp for Word. But the minute I create a second topic the compiled doen't work. there are no errors. the compilation just never starts. This also happens when I rename the first topic to something else.
    I have the following configurations:
    Robphelp for Word 7 build 145
    MS Office Work 2007
    windows XP professional with service pack 3
    I have deleted and started the project from scratch several times without any success. Any help would be highly appreciated
    Thanks
    Edna

    Hi,
    Thanks for your reply. The problem is there even with tutorial files and dummy projects.
    It seems that there is a problem with saving the document. If I don’t add anything the projects will compile problery. But the minute I change something it won't compile. When I want to close the word document I get a meesage saying if I would like Robohelp to save the document. If I press on "yes" nothing happens. If I press on "yes to all" nothing happens. Pressing on "no" closes the document.
    I have setup my word 2007 in a way so it will save .doc formats instead of .docx. But either way it makes no different the problem is with both file formats.

  • Flash builder 3 won't compile

    I have a flash builder 3 project  but I done something but it won't compile now. How can I resolve this. Tried clean project and no luck

    what are the compile errors u r getting ?

  • FtpClient client.delete("file") won't compile?

    Hello Fine People,
    I have this ftp program that is working, except for the delete command:
    import sun.net.ftp.*;
    import sun.net.*;
    String server = "192.168.0.0";
    String user = "me";
    String passwd = "mypassword";
    FtpClient client = new FtpClient();
    client.openServer(server);
    client.login(user, passwd);
    TelnetInputStream tis = null;
    client.binary();
    client.cd("Composites");
    tis = client.list();
    client.get("filename");
    client.delete("filename");
    This is roughly how it is. Without the last line, it compiles and runs fine. But when I add the client.delete line, it won't compile and gives this error:
    ImageTransfer.java:229: cannot resolve symbol
    symbol : method delete (java.lang.String)
    location: class sun.net.ftp.FtpClient
    client.delete("filename");
    Please help!
    - Logan

    Yes. The class you should be importing is, obviously, FTPClient. But don't waste your time trying to compile what is clearly just a code fragment example. The article lists several sources of FTP client software. Once you have chosen one package to evaluate, write your test program using the actual classes from that package, using its API documentation for guidance.

Maybe you are looking for

  • Ipod 4g not found by itunes 10.6.0.40 under Windows 7 Ultimate

    Hi, I own the Ipod Touch 4g. It's found under Windows 7 Ultimate, the icon Apple Ipod is displayed but the Ipod is not detected by Itunes 10.6.0.40. Ituners needs also a lot of time to start and to display the menus, more than 5 minutes when the ipod

  • Cannot preview ORF files in bridge cs4

    cannot preview ORF files in bridge cs4

  • Problem in delta load with Z field

    Hello Experts, We have CRM 5.0 system and as per the requirement we have added ZFIELD to BUT000 table. This field is added to BUT000 via EEWB – Easy Enhancement Workbench. This field is also BW enabled. BW enabled means – this field is used / availab

  • ATTACH PICTURE IN PO

    how to attach a document or  picture with po Edited by: baxter jas on Jan 11, 2008 10:05 AM

  • Improvements to status code explanations requested

    There are some status code explanations in the 9.0.4.x CSDK that could probably use some refinement to be more useful to application developers. Two examples: 1."CAPI_STAT_LIBRARY_INTERNAL_DATA = There was a corruption of data in the library." This m