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
875 views 3 comments
by

I'm unable to install the Ruby package on the RUT 955. I've tried with and without the Sudo commandwith both giving the same "not found" error.

The RUT is running RUT9XX_R_00.06.04.5 and BusyBox v1.30.1 () built-in shell (ash).

1 Answer

+1 vote
by anonymous

Hello. This is what we did try successfuly, keep in mind that we haven't tried if ruby package actually works as intended.

Use the command opkg:

opkg update and opkg install ruby

Here is the result we got:

root@Teltonika-RUT240:~# opkg update
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
root@Teltonika-RUT240:~# opkg install ruby
Installing ruby (2.2.4-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/ruby_2.2.4-1_ar71xx.ipk.
Installing libruby (2.2.4-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/libruby_2.2.4-1_ar71xx.ipk.
Configuring libruby.
Configuring ruby.
by

Thanks, This seems to have worked now but i'm now unable to install the Modbus-Cli as I keep getting the errors below. 

by anonymous

Hello.

you can type the following commands to see what packages are available:

opkg update
opkg list

for gems you should use "opkg install ruby-gems"

For the case of modbus-cli, sorry but it's not available in this distribution.

by anonymous

Hello.

Im not quite sure what you want to achieve installing those packages. But is that to monitor modbus devices?

the Modbus-cli is not a OpenWRT package but instad a PC linux tool to monitor RUT devices via modbus.

If you still want to install Gems. You can do the following:

root@Teltonika:~# opkg update
opkg install ruby-gems

But sadly there is no space left to install all those packages in the memory.

You will need to attach a Thumbdrive and use the Expansion Memory tool according to the instructions in the Web interface of the device.

https://wiki.teltonika.lt/view/RUT955_Memory_expansion

This is the result after trying to install the Gems without the memory expansion:

 * wfopen: /usr/bin/gem: No space left on device.
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/ruby-gems.list: No space left on device.
 * opkg_install_pkg: Failed to extract data files for ruby-gems. Package debris may remain!
 * opkg_install_cmd: Cannot install package ruby-gems.
 * opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: No space left on device.