bin

How to uninstall Ruby from /usr/local?

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Everything was working fine , until we decided to upgrade ruby to 1.8.7 from 1.8.6, and thats when all hell broke loose. When we compiled Ruby 1.8.7 from source it got installed into /usr/local/bin and Ruby 1.8.6 stayed in /usr/bin. Currently, we've uninstalled ruby 1.8.6 and by some stroke we deleted the ruby 1.8.7 files from /usr/local. when we try "which ruby" it points to /usr/local. If anybody could help us out what we need to do get back on track , we would be very grateful.and also any idea how we can uninstall ruby from

R not recognizing GSL library undefined references

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am installing a package from github in R (link here: https://github.com/aliceyiwang/mvabund ), using devtools. I have installed Rtools, using the instructions for another package (here: https://cran.r-project.org/web/packages/dynr/vignettes/InstallationForUsers.pdf ) and all the checks there indicate that GSL and RTools are installed properly. I've set the Windows system environment variables LIB_GSL (as "C:/R/local323" ) and PATHS (as "C:/RTools/bin/", "C:/RTools/mingw_64/bin", "C:/R/R-3.5.1/bin" ) I also run the following code in R

No code coverage with Mac OS X Lion and XCode 4 / llvm-g++-4.2

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Other people have reported not being able to generate code coverage with XCode 4 , but I find not only can I not do it from within XCode 4, I can't do it even with a simple toy program from the command line. I followed the examples given here and here , which led me to create this cov.c file: #include int main (void) { int i; for (i = 1; i I then used the following commands in an attempt to generate code coverage: g++ -c -g -O0 --coverage -o $PWD/obj/cov.o $PWD/cov.c g++ -g -O0 --coverage -o $PWD/bin/cov $PWD/obj/*.o $PWD/bin/cov Alas, no

Where can I find open source 2d bin packing algorithms? [closed]

匿名 (未验证) 提交于 2019-12-03 01:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm looking for open source (preferably c++) algorithms for 2d bin packing of rectangular and or irregular shapes. I've found several papers on the subject but no code. 回答1: Here is the best to my knowledge about rectangular bin packing: http://clb.demon.fi/projects/rectangle-bin-packing 转载请标明出处: Where can I find open source 2d bin packing algorithms? [closed] 文章来源: Where can I find open source 2d bin packing algorithms? [closed] 跳转到 问题: 回答1: Close

ImageMagick/Imagick convert PDF to JPG using native PHP API

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I’m attempting to convert PDF files into PNGs. It works great from the command line (I do have GhostScript 8.64 installed). But from PHP I’m having a problem: code: $im = new Imagick($pdf_file); // this is where it throws the exception below output: Fatal error: Uncaught exception ‘ImagickException’ with message ‘Postscript delegate failed `23_1235606503.pdf’: No such file or directory @ pdf.c/ReadPDFImage/612′ in get_thumbnail.php:93 Stack trace: \#0 get_thumbnail.php(93): Imagick->__construct(’…’) etc. etc. I'm not sure what I'm doing

使用nologin用户启动tomcat进程

假如想象 提交于 2019-12-03 01:15:17
在生产环境中如何以非root并且nologin的用户启动某些应用呢,找了一下发现可以使用su及runuser命令实现,这两个命令对于nologin用户都需要添加-m选项,以tomcat为例: ###添加nologin的应用账号 # useradd -s /sbin/nologin tomcat # cat /etc/passwd|grep tomcat tomcat:x:501:501::/home/tomcat:/sbin/nologin ###使用su切换至普通账号下启动应用 测试切换到tomcat用户失败 # su - tomcat This account is currently not available. 使用su以tomcat用户启动tomcat # chown -R tomcat.tomcat /data/app/apache-tomcat-7.0.63 && su - tomcat -m -c "source /etc/bashrc&&/data/app/apache-tomcat-7.0.63/bin/startup.sh" Using CATALINA_BASE: /data/app/apache-tomcat-7.0.63 Using CATALINA_HOME: /data/app/apache-tomcat-7.0.63 Using CATALINA

ubuntu 下切换jdk版本

别说谁变了你拦得住时间么 提交于 2019-12-03 01:12:35
因为ubuntu 会自带open-jdk预装在系统内,当我们需要在 ubuntu下 安装jdk 的时候 ,发现 即使配置好环境变量后, 输入 java -version 版本还是依然没有发生变化,我们需要以下2个步骤切换/usr/local/java 指向的 jdk ############################################## #第一步 我们需要把新版本的java 命令更新到系统的 /usr/bin/ 下 301为优先级 ############################################## sudo update-alternatives --install /usr/bin/java java /usr/local/jdk1.8.0_45/jre/bin/java 301 ############################################## #第二步 我们重新配置java 选择你新安装的jdk ,完成后 java -version 看看是否成功 ############################################## dangcheng@dangcheng-pc:/usr/local$ sudo update-alternatives --config java 有 2

php execution phantom js works but casperjs does not work permission denied

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: okay so i am running centos 6.5 with zpanel setup. this then has phantom js and casperjs both setup and working it the /usr/local/bin directory. i use this php command for phantomjs and casperjs echo exec('/usr/local/bin/casperjs --version 2>&1'); phantomjs works fine but casperjs gives me this error sh: /usr/local/bin/casperjs: Permission denied can anyone out there help me fix this problem it is just a pain output for ls -al casperjs [root@cyber-hosted ~]# ls -al casperjs total 100 drwxr-xr-x 10 apache root 4096 Feb 4 15:49 . dr-xr-x---. 5

Go install always fails no install directory outside GOPATH

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: ~ /src/ go - statsd - client > echo $GOPATH / Users / me / gopath ~ /src/ go - statsd - client > echo $GOROOT / usr / local / Cellar / go / 1.1 . 1 \ ~ /src/ go - statsd - client > go install go install : no install location for directory / Users / me / src / go - statsd - client outside GOPATH No matter what structure the project is in this always fails with the same message. Go build works perfectly. Here is my go env GOARCH = "amd64" GOBIN = "" GOCHAR = "6" GOEXE = "" GOHOSTARCH = "amd64" GOHOSTOS = "darwin" GOOS = "darwin"

Understanding rkhunter warnings

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I got paranoid and ran both chkrootkit and rkhunter to scan for rootkits. Doesn't look like chkrootkit found anything, but rkhunter returned some warnings. I think many might be false positives, but I'm mostly worried about the 'possible rootkit strings' and the three suspect files. Any explanations would be greatly appreciated!! Thank you! Performing file properties checks /usr/bin/fuser [ Warning ] /usr/bin/whatis [ Warning ] /usr/bin/shasum [ Warning ] Performing additional rootkit checks Checking for possible rootkit strings [ Warning ]