FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
550 views 19 comments
by anonymous

when compiling on Ubuntu 18.04.6 LTS I get this error:

Collected errors:
 * pkg_run_script: package "tinc" preinst script returned status 127.
 * preinst_configure: Aborting installation of tinc.
 * opkg_install_cmd: Cannot install package tinc.
package/Makefile:66: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/mnt/d/rutos-ath79-rut9-gpl'
package/Makefile:109: recipe for target '/mnt/d/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/stamp/.package_install' failed
make[1]: *** [/mnt/d/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/stamp/.package_install] Error 2

make[1]: Leaving directory '/mnt/d/rutos-ath79-rut9-gpl'
/mnt/d/rutos-ath79-rut9-gpl/include/toplevel.mk:232: recipe for target 'world' failed
make: *** [world] Error 2
 

additional info

when i tried inatall tinc package on "clean" FW RUT9_R_GPL_00.07.02.7 I get this error

Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-79c5dc6db69102eb2943a96b9bec8b63) for kmod-tun

Please help.

by anonymous
A README file within SDK recommends using Ubuntu 20.04 LTS. I have successfully managed to compile the same firmware on 20.04.5 version.

1 Answer

0 votes
by anonymous

Hello,

Ubuntu 18.04.6 is an old distribution, use a more recent one (a Fedora 37 will work fine).

And use tar -xozf ~/Downloads/RUT9_R_GPL_00.07.02.7.tar.gz -C RUT9_R_GPL_00.07.02.7 to avoid permission issues within the tree.

Regards,

by anonymous
this is exactly my problem :)
by anonymous

pkg_run_script tries to run a script intended to be executed on the target system itself not by the build process. This is obviously a bug in the package.

 

by anonymous
I get it.

I really need the FW with embedded tinc package

What's your advice then?
by anonymous

Apply the following patch: https://drive.google.com/file/d/1vKIxG5aQEX-n3BmjAJGevJ5KDiav9TwZ/view?usp=sharing

Use patch -p1 < tinc-Makefile.patch in the base folder.

Those formatting issues are new ...

by anonymous

It works!

Your advice is invaluable, thank you very muchsmiley