Code Monkey home page Code Monkey logo

Comments (3)

hwhw avatar hwhw commented on May 18, 2024

This is unfortunately an incompatibility between BSD and GNU sed.
http://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-and-linux
We probably can't solve it but have to resort to "patch" or similar to
do the same job.

2013/6/8 Snoopy Guo [email protected]

Environment : Hackintosh 10.8.3, xcode 4.6.2, self-compiled wget and md5sum.
Error log (during 'make fetchthirdparty' ):

[ md5sum libk2pdfopt/tesseract-ocr-3.02.02.tar.gz|cut -d\ -f1 != 26adc8154f0e815053816825dde246e6 ]
&& cd libk2pdfopt && rm tesseract-ocr-3.02.02.tar.gz
&& wget http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz || true
cd libk2pdfopt && tar zxf tesseract-ocr-3.02.02.tar.gz
sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g" libk2pdfopt/tesseract-ocr/configure.ac
sed: 1: "libk2pdfopt/tesseract-o ...": extra characters at the end of l command
make[1]: *** [fetchthirdparty] Error 1
make: *** [fetchthirdparty] Error 2

Reference: http://stackoverflow.com/questions/7648328/getting-sed-error
How to break it?


Reply to this email directly or view it on GitHub.

from koreader.

ahxxm avatar ahxxm commented on May 18, 2024

=___=

from koreader.

houqp avatar houqp commented on May 18, 2024

Yeah, you may need to change other places in the make file (like md5sum) to adapt for mac. So if you don't want to deal with that, I recommend you use a Linux VM for development.

from koreader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.