[SOLVED] IPKG Path Problem

Discussions and howtos on the installation and the use of Optware/Ipkg on all QNAP Series products. For those wonders, Ipkg in the other words - Install hundreds of Linux software applications with one line of command.

[SOLVED] IPKG Path Problem

Postby rory » Fri Jul 31, 2009 4:52 am

I'm quite new to IPKG so forgive me if this is a noob issue...

I've been trying to get a few ipkg modules running on my QNAP 409 Pro:

Imagemagick
Ghostscript
FFMpeg

They appear to install correctly without any error messages but they do not appear in the usr/bin or usr/sbin path, which is how I would expect to call them. Is the path for ipkg modules something different? Do I need to reference them directly and if yes, where do they reside?

Any help appreciated.
Last edited by rory on Sat Aug 01, 2009 7:38 pm, edited 1 time in total.
OS X 10.5.8
TS-259 Pro / RAID 1 / 2 x 1T WD Black / 3.2.1 1231T
TS-410 / RAID 6 / 2 x 750GB + 2 x 500GB WD Black / 3.2.1 Build 0104T
SMCGS8P-Smart Switch
rory
Silver Warrior
 
Posts: 304
Joined: Tue Feb 12, 2008 11:52 am
NAS Model: WS-411U

Re: [HELP] IPKG Path Problem

Postby rory » Fri Jul 31, 2009 9:35 am

So I hard linked to the needed binaries as follows:

/share/MD0_DATA/.qpkg/Optware/bin

But shouldn't there be a symlink in /usr/bin?
OS X 10.5.8
TS-259 Pro / RAID 1 / 2 x 1T WD Black / 3.2.1 1231T
TS-410 / RAID 6 / 2 x 750GB + 2 x 500GB WD Black / 3.2.1 Build 0104T
SMCGS8P-Smart Switch
rory
Silver Warrior
 
Posts: 304
Joined: Tue Feb 12, 2008 11:52 am
NAS Model: WS-411U

Re: [HELP] IPKG Path Problem

Postby rory » Sat Aug 01, 2009 7:37 pm

The path is /opt/bin rather than /usr/bin...
OS X 10.5.8
TS-259 Pro / RAID 1 / 2 x 1T WD Black / 3.2.1 1231T
TS-410 / RAID 6 / 2 x 750GB + 2 x 500GB WD Black / 3.2.1 Build 0104T
SMCGS8P-Smart Switch
rory
Silver Warrior
 
Posts: 304
Joined: Tue Feb 12, 2008 11:52 am
NAS Model: WS-411U

Re: [SOLVED] IPKG Path Problem

Postby shimpai » Sat Sep 26, 2009 2:23 am

Hello !
I'm in the exact same situation as you were with imageMagick path.
You thread helped me, but I need a bit more details.
I installed IPKG fine, but I don't know where to make the symlink and where it's supposed to link to.
Culd you please help ?
Thanks
shimpai
Cadet
 
Posts: 1
Joined: Sat Sep 26, 2009 1:31 am
NAS Model: TS-119/219

Re: [SOLVED] IPKG Path Problem

Postby rory » Sat Sep 26, 2009 9:20 am

Can you give a bit more info? are you looking for the path to the binary? It is opt/bin

If you are looking for something else let me know.
OS X 10.5.8
TS-259 Pro / RAID 1 / 2 x 1T WD Black / 3.2.1 1231T
TS-410 / RAID 6 / 2 x 750GB + 2 x 500GB WD Black / 3.2.1 Build 0104T
SMCGS8P-Smart Switch
rory
Silver Warrior
 
Posts: 304
Joined: Tue Feb 12, 2008 11:52 am
NAS Model: WS-411U

Re: [SOLVED] IPKG Path Problem

Postby Marc J » Sat Oct 24, 2009 4:52 pm

Hi,

This thread gave me some pointers, but unfortunately I'm still stuck!

My thread: viewtopic.php?f=32&t=20529&start=0

Basically, I've installed Optware IPKG, and using it installed Imagemagick and Ghostscript. But PHP scripts requiring it aren't working, I'm assuming there are paths or some further configuration required. If you got this working, are you able to offer any help?
Marc J
Cadet
 
Posts: 36
Joined: Wed Oct 15, 2008 1:36 am
NAS Model: TS-239 Pro

Re: [SOLVED] IPKG Path Problem

Postby rory » Sun Oct 25, 2009 1:50 am

Assuming that PHP is configured correctly you should be able to supply a direct path to optware bin. In my case this was:

/share/MD0_DATA/.qpkg/Optware/bin

But the actual path on your machine may vary depending on the raid configuration that you are running. The easiest way to determine the path is to ssh into the box and navigate to the optware/bin. Then determine the full path with the pwd command. Also check the optware/bin to ensure that the required binaries are present. If not then search for them and use the resulting path. You could also create a symlink in usr/bin although I had issues getting symlinks to work with some applications. I have no idea why.

Let us know here when and how you solve your issues as it may help others in the future.

Regards,

Rory
OS X 10.5.8
TS-259 Pro / RAID 1 / 2 x 1T WD Black / 3.2.1 1231T
TS-410 / RAID 6 / 2 x 750GB + 2 x 500GB WD Black / 3.2.1 Build 0104T
SMCGS8P-Smart Switch
rory
Silver Warrior
 
Posts: 304
Joined: Tue Feb 12, 2008 11:52 am
NAS Model: WS-411U

Re: [SOLVED] IPKG Path Problem

Postby Marc J » Mon Oct 26, 2009 1:16 am

Thanks for coming back rory, I wasn't sure if you were still watching this topic or not!

I found a test page for Imagemagick somewhere else which for me: -

Code: Select all
<html>
<head>
<title>Test for ImageMagick</title>
</head>
<body>
<?php

function alist ($array) {  //This function prints a text array as an html list.
  $alist = "<ul>";
  for ($i = 0; $i < sizeof($array); $i++) {
    $alist .= "<li>$array[$i]";
  }
  $alist .= "</ul>";
  return $alist;
}

// should give the path to imagemagick
echo "<pre>";
system("type convert");
echo "</pre>";

$imagemagick_path = '/opt/bin/convert'; // the output from above in my case

exec("$imagemagick_path -version", $out, $rcode); //Try to get ImageMagick "convert" program version number.
echo "Version return code is $rcode <br>"; //Print the return code: 0 if OK, nonzero if error.
echo alist($out); //Print the output of "convert -version"
?>
</body>
</html>


The output of the first part (i.e. the path to Imagemagick) was /opt/bin/convert and so I'm guessing a symlink was automatically created upon installation. Using this works fine, Imagemagick and Ghostscript are working just as they should be :)
Marc J
Cadet
 
Posts: 36
Joined: Wed Oct 15, 2008 1:36 am
NAS Model: TS-239 Pro


Return to Optware / IPKG Modz

Who is online

Users browsing this forum: No registered users and 1 guest