Results 1 to 7 of 7

Thread: Trying to install newer version of cairo into BT2

  1. #1
    Just burned his ISO
    Join Date
    Dec 2007
    Posts
    3

    Cool Trying to install newer version of cairo into BT2

    Greetings. Kudos to the backtrack team for an excellent offering. I've used BT2 for a while, and I am also an Immunity CANVAS user and up until recently, CANVAS worked great on BT2's default install. They now require a newer version of pycairo and the newer version of pycairo requires a newer version of cairo than what's available within BT2 from what I can determine. I was unable to find an easy way to upgrade cairo so I tried to modify /var/slapt-get/package_data to reflect the new version of cairo as such (the link is changed to hxxp since I can't post a link to the forum yet)

    existing cairo entry in package_data:

    PACKAGE NAME: cairo-1.0.4-i486-1.tgz
    PACKAGE MIRROR: hxxp://slackware.mirrors.tds.net/pub/slackware/slackware-11.0/
    PACKAGE LOCATION: ./slackware/l
    PACKAGE SIZE (compressed): 263 K
    PACKAGE SIZE (uncompressed): 1090 K
    PACKAGE REQUIRED:
    PACKAGE CONFLICTS:
    PACKAGE SUGGESTS:
    PACKAGE MD5 SUM: 753b032446cb3424cc306d2bf9e095ba
    PACKAGE DESCRIPTION:
    cairo: cairo (graphics library used by GTK+)
    cairo:
    cairo: Cairo is a vector graphics library designed to provide high-quality
    cairo: display and print output. Cairo is designed to produce
    cairo: identical output on all output media while taking advantage of display
    cairo: hardware acceleration when available (eg. through the X Render
    cairo: Extension or OpenGL).
    cairo:


    Tried changing to this:

    PACKAGE NAME: cairo-1.4.10-i486-1.tgz
    PACKAGE MIRROR: hxxtp://slackware.mirrors.tds.net/pub/slackware/slackware-12.0/
    PACKAGE LOCATION: ./slackware/l
    PACKAGE SIZE (compressed): 432 K
    PACKAGE SIZE (uncompressed): 1864 K
    PACKAGE REQUIRED:
    PACKAGE CONFLICTS:
    PACKAGE SUGGESTS:
    PACKAGE MD5 SUM: 4ee37492e2a02bc93f530f97acc24ac9
    PACKAGE DESCRIPTION:
    cairo: cairo (graphics library used by GTK+)
    cairo:
    cairo: Cairo is a vector graphics library designed to provide high-quality
    cairo: display and print output. Cairo is designed to produce
    cairo: identical output on all output media while taking advantage of display
    cairo: hardware acceleration when available (eg. through the X Render
    cairo: Extension or OpenGL).
    cairo:


    I updated the md5 hash and the file sizes (calculated by du) and the location to a newer version but this approach does not bear fruit, perhaps due to the wrong version of slackware causing issues-

    # slapt-get --install cairo
    Reading Package Lists... Done
    The following packages will be upgraded:
    cairo
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 6.0kB/432.0kB of archives.
    After unpacking 774.0kB of additional disk space will be used.
    Do you want to continue? [y/N] y
    Get hxxp://slackware.mirrors.tds.net/pub/slackware/slackware-12.0/ cairo 1.4.10-i486-1 [6kB]. Get hxxp://slackware.mirrors.tds.net/pub/slackware/slackware-12.0/ cairo 1.4.10-i486-1 [432kB ]...Done
    Download of cairo incomplete

    I've googled various forums etc to no avail. Any ideas to help get this going would be most appreciated. Thanks in advance for any thoughts.

  2. #2
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    All you should have to do is

    bt~#slapt-get --install cairo pxcairo etc.


    If it says no package found then you must add the slacky repo to your /etc/slapt-get/slapt-getrc file. like this
    Code:
    # See /usr/doc/slapt-get-0.9.12/example.slapt-getrc 
    # for example source entries and configuration hints.
    WORKINGDIR=/var/slapt-get
    EXCLUDE=^kernel-.*,^alsa-.*,^glibc.*,.*-[0-9]dl$,^devs$,aaa_elflibs,x86_64,ruby,python,smb
    SOURCE=ftp://slackware.cs.utah.edu/pub/slackware/slackware-11.0/
    SOURCE=http://software.jaos.org/slackpacks/11.0/
    SOURCE=http://www.slacky.eu/repository/slackware-11.0/
    Then do the slapt-get command again. You can also update all your installed packages this way if you prefer

    bt~#slapt-get --update && slapt-get --upgrade

  3. #3
    Senior Member shamanvirtuel's Avatar
    Join Date
    Mar 2010
    Location
    Somewhere in the "Ex" human right country
    Posts
    2,988

    Default

    or wait bt3 !..
    im pretty sure it will ok in bt3
    Watch your back, your packetz will belong to me soon... xD

    BackTrack :
    Giving Machine Guns to Monkeys since 2006

  4. #4
    Just burned his ISO
    Join Date
    Dec 2007
    Posts
    3

    Default install of newer cairo package didn't work, try from source?

    purehate: thanks for the response. That didn't work, however. There is apparently no pycairo package available, and the cairo package for 12.0 doesn't appear to be recognized even after adding the mirror into /etc/slapt-get/slapt-getrc. I tried installing pycairo and cairo from source but can't get pycairo to recognize that the newer version of cairo exists as it's always looking for the package and not a source install; fixing this may just be a matter of passing the proper arguments to pycairos ./config but I haven't looked at it enough to know what to do. If anyone else has thoughts, I'd appreciate it. It's probably an easy fix once I find it :>

  5. #5
    Very good friend of the forum drgr33n's Avatar
    Join Date
    Jan 2010
    Location
    Dark side of the moon ...
    Posts
    699

    Default

    I hate to be the bearer of bad news but the slacky repo has been dead for a few days now

    http://riksun.riken.go.jp/pub/pub/Li...0/slackware/l/

    Try downloading the packages manually from the repo above, Or as shamanvirtuel said wait for bt3, It will have everything you need and beta is released the 14th I think ??? Correct me if i'm wrong

  6. #6
    Developer balding_parrot's Avatar
    Join Date
    May 2007
    Posts
    3,399

    Default

    You should be able to find the modules you need here

  7. #7
    Just burned his ISO
    Join Date
    Dec 2007
    Posts
    3

    Default

    thanks for the ideas but none of the repositories I've found have the proper version of cairo (most recent one at slax.hosting4p.com is too old) but I did find a package for slack12 that I've installed with installpkg that appeared to go OK. No pycairo package found, tried installing from source, it errors out on the cairo dependency again but the reason has changed, it indicates that it can't find x11 on the box and suggests that I look for x11.pc, which I can't find on the box (this is a hard drive install btw).

    The apparently relevant part from the pycairo installation attempt:

    checking for python platform... linux2
    checking for python script directory... ${prefix}/lib/python2.4/site-packages
    checking for python extension module directory... ${exec_prefix}/lib/python2.4/site-packages
    sh: line 190: -e: command not found
    sh: line 194: -e: command not found
    sh: line 206: -e: command not found
    sh: line 286: -e: command not found
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for CAIRO... configure: error: Package requirements (cairo >= 1.4.0) were not met:

    Package x11 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `x11.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'x11', required by 'cairo', not found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables CAIRO_CFLAGS
    and CAIRO_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    I will be looking further into the script to see what the -e errors are all about, but in the meanwhile, how may I find x11.pc?

    Thanks for any ideas.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •