Why am I getting and "Image not found" error when converting pdf to html? - pdf-to-html

I am using pdftohtml tool to convert pdfs to html using the following command:
pdftohtml -s -c SOURCE_FILE_NAME
which results in the following error:
dyld: Library not loaded: /usr/local/opt/openjpeg/lib/libopenjpeg.5.dylib
Referenced from: /usr/local/bin/pdftohtml
Reason: image not found
Trace/BPT trap: 5
I haven't managed to find outwhy this is happening thus far. Can anyone shed any light on this?

Related

installing rmarkdown packages gives me non-zero exit status

I am completely new to RStudio. Hence I apologize in advance for my inexpertise.
the response to install.packages("rmarkdown") the first code below.
Then, when I try to go to New file Rmarkdown it appears the alert: "Creating R Markdown documents requires an updated version of the rmarkdown package. Do you want to install this package now?"
When I accept I get the second code below.
What can I do to solve the problem? You help a total beginner please? Thank you for your patience. I am using RStudio 1.3.1093 on OS Sierra 10.12.6
'''
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 2.3 2.5 FALSE
installing the source package ‘rmarkdown’
provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
Warning in file(con, "r") :
cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51734 Done echo 'tools:::.install_packages()'
51735 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpMVE5wW/downloaded_packages’
Installing 'rmarkdown' for R Markdown...
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 2.3 2.5 FALSE
installing the source package ‘rmarkdown’
provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
Warning in file(con, "r") :
cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51767 Done echo 'tools:::.install_packages()'
51768 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
The downloaded source packages are in
‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpDhf44F/downloaded_packages’
✔ Package 'rmarkdown' successfully installed.
Warning message:
In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/") :
installation of package ‘rmarkdown’ had non-zero exit status
Try install.packages(“rmarkdown”, dep = TRUE) . I also see something about the time zone, is your PC on the right time? I’ve seen installs not work because of the pc had the wrong time. You will also need to install latex with Rmarkdown

dyld: Library not loaded: /usr/local/opt/gsl/lib/libgsl.23.dylib

I am trying to get a piece of software called emergent working. It relies on qt and coin, which I've both installed.
But when I try to run emergent, I get the following error:
dyld: Library not loaded: /usr/local/opt/gsl/lib/libgsl.23.dylib
Referenced from: /usr/local/bin/emergent
Reason: image not found
Abort trap: 6
gsl 2.6 is already installed on my computer. Also using Mac OS. Any ideas what could be causing this?
ls /usr/local/opt/gsl
see which version of the library you have (I had .25)
then
ln -s libgsl.25.dylib libgsl.23.dylib
Makes symbolic link between files.
then it worked!

dyld: Library not loaded: /usr/local/lib/libwep on Mac for command make

When I run command "make", fellow error occurs:
MacBook-Pro~/Downloads/mp-boost$make
dyld: Library not loaded: /usr/local/lib/libwep
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
Reason: no suitable image found. Did find:
/usr/local/lib/libwep: code signing blocked mmap() of '/usr/local/lib/libwep'
/usr/local/lib/libwep: code signing blocked mmap() of '/usr/local/lib/libwep'
make: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
make: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
How I can fix this error?

Upgrading from Cocos2D 0.99.5 to 2.1 resulting in 3 errors

I was attempting to upgrade Cocos2D in my existing project resulting in issues no one knew how to solve, so I decided to start with fresh project then migrate my files over. I'm not sure when this happened but now I have 3 errors:
1.) Lexical or Preprocessor Issue
'XCTest/XCTest.h' file not found
2.) ld: file not found: /Users/Admin/Library/Developer/Xcode/DerivedData/test_cocos2d_proj-atnaeyeebjlopnbgbcqjaoeylldh/Build/Intermediates/test cocos2d proj.build/Debug-iphonesimulator/test cocos2d proj.build/Objects-normal/i386/cocos2d_libraryTests.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
3.) error: unable to open executable '/Users/Admin/Library/Developer/Xcode/DerivedData/test_cocos2d_proj-atnaeyeebjlopnbgbcqjaoeylldh/Build/Products/Debug-iphonesimulator/test cocos2d proj.app/test cocos2d proj'

Library not loaded on terminal but runs ok on Xcode

I built a command line tool within Xcode and it runs ok, but when I try to run it from the terminal it complains about one of my libs:
MacBook:Debug Jonathan$ ./MyApp
dyld: Library not loaded: /Users/Jonathan/Library/Frameworks/Josk.framework/Versions/A/Josk
Referenced from: /Users/Jonathan/Development/C++/MyApp/build/Debug/./MyApp
Reason: image not found
Trace/BPT trap
on my MyApp project I added a copy phase (destination: framework, no path and didn't mark the only-on-installing checkbox) to the target and on the directory of MyApp I can see the Josk.framework copied.
Thanks,
Jonathan
export DYLD_FRAMEWORK_PATH=/Users/Jonathan/Library/Frameworks
or
copy Josk.framework to /Users/Jonathan/Library/Frameworks
For deployment, there are various options such as #executable_path, #loader_path, #rpath.
see, man dyld