3rd party zypkgs NAS540

Mindspeed Comcerto 2000 based
Post Reply
Mattike
Posts: 5
Joined: Fri Jan 08, 2016 7:01 pm

3rd party zypkgs NAS540

Post by Mattike » Fri Jan 08, 2016 7:05 pm

Hello,
I am new here and have bought an NAS540. I Wanted to install the 3th party zypkgs. And placed the files in /i-data/nas540/admin/zy-pkgs but if i let my nas searching to the internet after new packages he don't find them. What can i do ?

Mijzelf
Posts: 6204
Joined: Mon Jun 16, 2008 10:45 am

Re: 3rd party zypkgs NAS540

Post by Mijzelf » Sat Jan 09, 2016 2:20 pm

What exactly have you done? /i-data/nas540/admin/zy-pkgs is not the right path. That should be /i-data/sysvol/admin/zy-pkgs/

Mattike
Posts: 5
Joined: Fri Jan 08, 2016 7:01 pm

Re: 3rd party zypkgs NAS540

Post by Mattike » Sat Jan 09, 2016 3:24 pm

I put the files in here: /i-data/d08bec9d/admin/zypkg/MetaRepository_20151010_arm_012.zpkg (It won't go to SYSVOL) If i type that it goes directly to "d08bec9d".
And if i push "retrieve list from internet". It doesn't show up.

I use firmware 5.10

Mijzelf
Posts: 6204
Joined: Mon Jun 16, 2008 10:45 am

Re: 3rd party zypkgs NAS540

Post by Mijzelf » Sat Jan 09, 2016 4:45 pm

You should put the file 'web_prefix' there. In your situation, you can do

Code: Select all

cd /i-data/sysvol/admin/zy-pkgs
wget http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/web_prefix

Mattike
Posts: 5
Joined: Fri Jan 08, 2016 7:01 pm

Re: 3rd party zypkgs NAS540

Post by Mattike » Sat Jan 09, 2016 4:49 pm

Ok, Thanks Now it works for me :)

Mattike
Posts: 5
Joined: Fri Jan 08, 2016 7:01 pm

Re: 3rd party zypkgs NAS540

Post by Mattike » Sun Jan 10, 2016 12:14 pm

I have another question too.

I've Installed spotweb and i have to execute retrieve.PHP i have tried this folders:

Code: Select all

/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php
/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php/lib/php
/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php/include/php
/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php/php
But if i put this in command line:

Code: Select all

cd /i-data/d08bec9d/spotweb /one of the above retrieve.php
it wont work. What do i wrong or can't i execute PHP files ?

Ps: Mijzelf do you speak dutch? And may you speak it in this forum ? (Schould be easier for me to explain :) )

Mijzelf
Posts: 6204
Joined: Mon Jun 16, 2008 10:45 am

Re: 3rd party zypkgs NAS540

Post by Mijzelf » Sun Jan 10, 2016 1:39 pm

Mattike wrote:i have to execute retrieve.PHP
i have tried this folders:

Code: Select all

/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php
/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php/lib/php
/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php/include/php
/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php/php
But if i put this in command line:

Code: Select all

cd /i-data/d08bec9d/spotweb /one of the above retrieve.php
A number of comments:
  • Linux has case sensitive filenames, so if you need to execute retrieve.PHP, you shouldn't execute retreive.php.
  • I'm not sure why you try folders (which is Microsoft speak, BTW, it are directories), when you need an executable. The actual executable is .../php/bin/php
  • Because PHP is a package, which is installed in a variable directory, PHP can't find it's own libraries. So you have to specify the lib directory.
In your case the command could be

Code: Select all

LD_LIBRARY_PATH=/i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/lib /i-data/d08bec9d/.PKG/PHP-MySQL-phpMyAdmin/php/bin/php /(relative)path/to/retrieve.PHP
(This is a single line.)

Mattike
Posts: 5
Joined: Fri Jan 08, 2016 7:01 pm

Re: 3rd party zypkgs NAS540

Post by Mattike » Sun Jan 10, 2016 4:14 pm

Thank you it's working :)

ariek
Posts: 116
Joined: Wed Oct 23, 2013 6:23 pm
Location: The Netherlands

Re: 3rd party zypkgs NAS540

Post by ariek » Mon Jan 15, 2018 11:31 am

Thanks, totally forgot to point to the libs directory. php: it's a package, hopefully I won't forget this time.

Post Reply