IFH
IFH

Reputation: 161

How do I compress a text file in Ubuntu using Snappy

I have done an sudo apt-get install snappy on Ubuntu 14.04 and now every time I try and run the command snappy textfile.txt to compress textfile.txt. I get an error saying:

** (snappy:14342): ERROR **: Error discovering URI: This appears to be a text file. Trace/breakpoint trap (core dumped)

Anyone have any clue why this happened?

If I am doing it wrong, please show me a proper way to compress the text file with snappy.

Upvotes: 4

Views: 9048

Answers (2)

eadmaster
eadmaster

Reputation: 1457

install python3-snappy package, then:

python -m snappy --help

Upvotes: 0

Sven
Sven

Reputation: 952

You installed the snappy movie player and it complains when you try to open a text file instead of a media file. To install the snappy compression library you have to

sudo apt-get install libsnappy-dev

There are no default command line tools for snappy compression, you have to make your own or install another tool (or be anal and create a Perl one liner). I use Python for compression or the wrapper found at https://github.com/kubo/snzip

Supported languages can be found here: https://google.github.io/snappy/

Upvotes: 9

Related Questions