when I knit HTML in R studio, I get this:
"C:/Users/Susan/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS lesson3_student.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
output file: lesson3_student.knit.md
unrecognized option `--smart'
Try pandoc.exe --help for more information.
Error: pandoc document conversion failed with error 2
In addition: Warning message:
running command '"C:/Users/Susan/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS lesson3_student.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"' had status 2
Execution halted
Can someone give me an idea what went wrong and how to fix it?
Thank you
Today I had the same problem.
I fixed it by setting the smart option to false, as described here.
output:
html_document:
smart: false
It seems that --smart is no longer supported in the newest pandoc version (1.19.2.1), even though it should be should be; see discusion on the RStudio forum
Related
when I run code using qsub and pbs script, the log and error files are not shown.
I have also tried to add the path of error and log file, but without succes
#PBS -N example_job
#PBS -j oe
#PBS -q shortp
#PBS -V
##PBS -v BATCH_NUM_PROC_TOT=16
#PBS -l nodes=1:ppn=4
#PBS -e $HOME/error.txt
#PBS -o $HOME/otput.txt
Do you know how can I solve the problem ?
Thanks a lot
I installed crystal with homebrew brew install crystal-lang. I was able to compile and run a "Hello World!" program, but when I try to compile the example http server (with one slight modification) I get an error.
HTTP server:
require "http/server"
port = 3000
server = HTTP::Server.new(port) do |context|
context.response.content_type = "text/plain"
context.response.print "Hello world! The time is #{Time.now}"
end
puts "listening on http://localhost:" + port.to_s
puts "listening on http://localhost:#{port}"
server.listen
Error:
$ crystal server.cr ~/sw/crystal/Lied-Today
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc -o "/Users/Matt/.cache/crystal/crystal-run-server.tmp" "${#}" -rdynamic -lz `command -v pkg-config > /dev/null && pkg-config --libs libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs libcrypto || printf %s '-lcrypto'` -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.21.1_1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`
I've tried the following:
Adding export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/lib" to ~/.zshrc.
and
$ xcode-select --install
$ xcode-select --switch /Library/Developer/CommandLineTools
I had to add LIBRARY_PATH to fix this.
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
I needed to let Xcode finish installing, before running the second xcode-select command.
Just include the Lib
brew install openssl
echo 'export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/' >> ~/.zshrc
source ~/.zshrc
Providing pkgconfig path for openssl library fixed the problem for me:
PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig" crystal <command>
Adding the package config Juan mentioned worked for me, here are commands to add it so you don't need to specify every time:
echo 'export PATH="/usr/local/opt/llvm#8/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
As of MacOS Monterey, Matias' solution works and it's also in the official documentation now.
brew install openssl
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl/lib/pkgconfig
What does it depend on?
Repository information in package.json ? Nothing different.
Is this a silly question?
UPDATED:
after reading pm2's source code, I found an error occured in git.parse.
/usr/local/lib/node_modules/pm2/node_modules/vizion/lib/git.js
And I try to exec in the repl
child_process.exec("git show --quiet --format=%H%n%aD%n%s%n% HEAD",function(e,d){console.log(e)})
it will print
{ [Error: Command failed: /bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD
]
killed: false,
code: 1,
signal: null,
cmd: '/bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD' } 'adce83ece6c0e63112e7c9551ffca798e0130be6\nTue, 12 Apr 2016 16:23:02 +0800\nuser\n%B\n'
child_process.exec("git show HEAD",function(e,d){console.log(e)})
print null
git version too low? 1.7.1
or node version ? 0.12.0
UPDATED: Finaly I found the reason is that git version is too low.
after upgrade git, it works fine.
after reading pm2's source code, I found an error occured in git.parse.
/usr/local/lib/node_modules/pm2/node_modules/vizion/lib/git.js
And I try to exec in the repl
child_process.exec("git show --quiet --format=%H%n%aD%n%s%n% HEAD",function(e,d){console.log(e)})
it will print
{ [Error: Command failed: /bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD
]
killed: false,
code: 1,
signal: null,
cmd: '/bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD' } 'adce83ece6c0e63112e7c9551ffca798e0130be6\nTue, 12 Apr 2016 16:23:02 +0800\nuser\n%B\n'
child_process.exec("git show HEAD",function(e,d){console.log(e)})
print null
git version too low? 1.7.1
or node version ? 0.12.0
UPDATED: Finaly I found the reason is that git version is too low.
after upgrade git, it works fine.
I'm trying to use cURL in a script and get it to not show the progress bar.
I've tried the -s, -silent, -S, and -quiet options, but none of them work.
Here's a typical command I've tried:
curl -s http://google.com > temp.html
I only get the progress bar when pushing it to a file, so curl -s http://google.com doesn't have a progress bar, but curl -s http://google.com > temp.html does.
curl -s http://google.com > temp.html
works for curl version 7.19.5 on Ubuntu 9.10 (no progress bar). But if for some reason that does not work on your platform, you could always redirect stderr to /dev/null:
curl http://google.com 2>/dev/null > temp.html
In curl version 7.22.0 on Ubuntu and 7.24.0 on OSX the solution to not show progress but to show errors is to use both -s (--silent) and -S (--show-error) like so:
curl -sS http://google.com > temp.html
This works for both redirected output > /some/file, piped output | less and outputting directly to the terminal for me.
Update: Since curl 7.67.0 there is a new option --no-progress-meter which does precisely this and nothing else, see clonejo's answer for more details.
I found that with curl 7.18.2 the download progress bar is not hidden with:
curl -s http://google.com > temp.html
but it is with:
curl -ss http://google.com > temp.html
Since curl 7.67.0 (2019-11-06) there is --no-progress-meter, which does exactly this, and nothing else. From the man page:
--no-progress-meter
Option to switch off the progress meter output without muting or
otherwise affecting warning and informational messages like -s,
--silent does.
Note that this is the negated option name documented. You can
thus use --progress-meter to enable the progress meter again.
See also -v, --verbose and -s, --silent. Added in 7.67.0.
It's available in Ubuntu ≥20.04 and Debian ≥11 (Bullseye).
For a bit of history on curl's verbosity options, you can read Daniel Stenberg's blog post.
Not sure why it's doing that. Try -s with the -o option to set the output file instead of >.
this could help..
curl 'http://example.com' > /dev/null
On macOS 10.13.6 (High Sierra), the -sS option works. It is especially useful inside Perl, in a command like curl -sS --get {someURL}, which frankly is a whole lot more simple than any of the LWP or HTTP wrappers, for just getting a website or web page's contents.
Get sauce from github, read instructions in doc/build-unix.txt. But make can not into compile!
[urs1412#noname bitcoin]$ cd src
[urs1412#noname src]$ make -f makefile.unix
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security \
-Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE \
-D_FILE_OFFSET_BITS=64 -I/home/urs1412/w/bitcoin/src \
-I/home/urs1412/w/bitcoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 \
-I/home/urs1412/w/bitcoin/src/leveldb/include \
-I/home/urs1412/w/bitcoin/src/leveldb/helpers \
-DHAVE_BUILD_INFO -fno-stack-protector \
-fstack-protector-all -Wstack-protector \
-D_FORTIFY_SOURCE=2 -MMD -MF obj/alert.d \
-o obj/alert.o alert.cpp \
alert.cpp:6:53: fatal error: boost/algorithm/string/classification.hpp:
No such file or directory
compilation terminated.
make: *** [obj/alert.o] Error 1
td;dr could not build bitcoin, dumping system info
[urs1412#noname src]$ uname -r
3.6.10-4.fc18.x86_64
[urs1412#noname src]$ git log -n 1
commit 77a1e12eed5fc66dce16584696f54988a8c2bf4e
Merge: fe15aa3 0565b71
Author: Gavin Andresen
Date: Wed Apr 24 08:48:06 2013 -0700
Merge pull request #2554 from fanquake/qt-pro-brew-patch
bitcoin-qt.pro Brew patch
I finally was able to build bitcoin-1.8 (not the git sources, although I believe these same steps will be applicable) on my CentOS VPS.
Here are the packages I had to install. Note that I had to build some of these.
As root:
yum install gcc-c++ make
install boost-devel
yum install db4-devel
yum install openssl-devel # but this didn't provide ec.h, hence the next steps
yum install rpm-build
rpm -U ~jcomeau/rpmbuild/RPMS/x86_64/openssl-devel-1.0.0e-1.x86_64.rpm
yum install lynx # for downloading some source packages
yum install python-devel # for building miniupnpc
rpm -i ~jcomeau/rpmbuild/RPMS/x86_64/libminiupnpc9-1.8.20130503-0.1.x86_64.rpm
rpm -i ~jcomeau/rpmbuild/RPMS/x86_64/libminiupnpc-devel-1.8.20130503-0.1.x86_64.rpm
Then as user, make BOOST_LIB_SUFFIX=-mt all test
If you need instructions on building the openssl-devel (the spec file was in the sources and mostly functional) and libminiupnpc-devel (I got the spec file from an OpenSUSE source RPM and adapted it) let me know.
I believe your immediate problem is you didn't install openssl-devel. But you will likely run into these other problems after that, if you don't do some of the steps I did.
Make sure that boost library for gcc is working correctly. Try a test "hello world" program with boost. You can find it in the directory: BOOST_BUILD_PATH/example/hello
Compile it with BOOST_BUILD_PATH/bin/b2 toolset=gcc
If it doesnt work then boost is not correctly installed.