Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laszip support on Linux (Ubuntu, 16.04) #79

Closed
CheeseAnt opened this issue Mar 8, 2018 · 9 comments
Closed

Laszip support on Linux (Ubuntu, 16.04) #79

CheeseAnt opened this issue Mar 8, 2018 · 9 comments

Comments

@CheeseAnt
Copy link

I may be wrong about this, but having a look at the source of base.py, I can see that only binaries are searched for, which are not present on the linux installations of laszip. So, is this module only compatible with opening .laz files on windows?

If anyone has a method of obtaining a binary version for linux systems, that would be equally appreciated, as tips to modifying the code for compatibility.

@kbevers
Copy link
Contributor

kbevers commented Mar 8, 2018

So, is this module only compatible with opening .laz files on windows?

No.

If anyone has a method of obtaining a binary version for linux systems, that would be equally appreciated, as tips to modifying the code for compatibility.

There's an example here. Relevant excerpt:

 - git clone https://github.com/LASzip/LASzip.git
  - cd LASzip
  - git checkout 3.1.0
  - cmake .
  - make
  - sudo make install
  - cd ..
  - wget http://lastools.org/download/LAStools.zip
  - unzip LAStools.zip
  - cd LAStools
  - make
  - sudo cp bin/laszip /usr/local/bin
  - sudo ln -s /usr/local/bin/laszip /usr/local/bin/laszip-cli

@kbevers kbevers closed this as completed Mar 8, 2018
@CheeseAnt
Copy link
Author

Thank you, i feel silly for not having found this before.

@Nicholas-Autio-Mitchell

@kbevers

Getting a problem on the unzip step:

$  unzip LAStools.zip 
Archive:  LAStools.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of LAStools.zip or
        LAStools.zip.zip, and cannot find LAStools.zip.ZIP, period.

It seems the link (http://lastools.org/download/lastools.zip) returns an Error 404.
The base link to download files (http://lastools.org/download/) also doesn't repsond.

@kbevers
Copy link
Contributor

kbevers commented Jan 22, 2019

If only there was a website included in those links that you could open in a browser and find what you need...

@Nicholas-Autio-Mitchell

Clicking on the two links I sent does now send me to a page where I can select a file to download... When I posted originally, the domain lastools.org was not responding at all.

@glw
Copy link

glw commented Jan 28, 2019

I had issues unzipping it on my Linux VM. I had to download via Windows and unzip, then copy the directory back to my VM.

@Bornlove
Copy link

Bornlove commented Oct 2, 2019

I had issues unzipping it on my Linux VM. I had to download via Windows and unzip, then copy the directory back to my VM.

I did that way and it zipped off, Appreciate

@davidcaron
Copy link
Contributor

The link to LAStools should be:

wget https://lastools.github.io/download/LAStools.zip

I also had issues unzipping it, because the first link returned an html document 🙂

@asadclout
Copy link

when i run "make" command after unzip it show this error

cd LASlib && make
make[1]: Entering directory '/home/oc/LAStools/LASlib'
cd src && make
make[2]: Entering directory '/home/oc/LAStools/LASlib/src'
/bin/sh: 1: cd: can't cd to /home/jochen/srd
make[2]: *** [Makefile:155: all] Error 2
make[2]: Leaving directory '/home/oc/LAStools/LASlib/src'
make[1]: *** [Makefile:2: all] Error 2
make[1]: Leaving directory '/home/oc/LAStools/LASlib'
make: *** [Makefile:2: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants