Ubuntu

How to install the i386 version of R on ubuntu? [closed]

一世执手 提交于 2021-01-28 07:13:22
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Improve this question How to install the i386 version of R on ubuntu? I already have the x64 version installed on the server, but I need the 32-bit version to use a library that is on the same version. 回答1: I would recommend installing VirtualBox, and running a 32 bit Ubuntu version in

How can I install a python package without pip or virtualenv

删除回忆录丶 提交于 2021-01-28 07:09:27
问题 I have to deploy a python application to a production server (Ubuntu) that I do not control nor do I have permissions to apt-get, pip, virtualenv, etc. Currently, its the server is running python 2.6+. I need to install pycrypto as a dependency for the application but given my limited permissions, I'm not sure as to how to do it. The only think I have permissions to do is wget a resource and unpack it or things along those lines. First off, is it possible to use it without getting it

Compilation failed, c++ program with static variable as private member variable [duplicate]

眉间皱痕 提交于 2021-01-28 06:45:56
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: undefined reference to static member variable What is an undefined reference/unresolved external symbol error and how do I fix it? #include<iostream> using namespace std; class abc { private: static int a ; public: abc(int x) { a = x; } void showData() { cout<<"A = "<<a<<endl; } }; int main() { abc a1(4); abc a2(5); a1.showData(); a2.showData(); return 0; } When I try to compile this function on Ubuntu with GCC

sf R package “is not compatible with GDAL versions below 2.0.0” after installing gdal 2.3 from conda

僤鯓⒐⒋嵵緔 提交于 2021-01-28 06:44:42
问题 In trying to install the sf R package, I got the error message: checking GDAL version >= 2.0.0... no configure: error: sf is not compatible with GDAL versions below 2.0.0 I then installed gdal 2.3.1 from conda and confirmed the version: gdalinfo --version GDAL 2.3.1, released 2018/06/22 But I still get the same error message. SF on R 3.5 can't find correct version of gdal looks similar but their solution involved installing outside of conda. I'm on Ubuntu. How can I get sf to recognize the

Shell can't find nginx

允我心安 提交于 2021-01-28 06:10:35
问题 try to prompt this command nginx -V but shell returns fish: Unknown command “nginx” If I try sudo service nginx status I could see Usage: /etc/init.d/nginx {start|stop|restart|reload|force-reload} Why nginx -V is not work? 回答1: /etc/init.d/nginx is a shell script to start/stop/... the nginx service $ file /etc/init.d/nginx /etc/init.d/nginx: POSIX shell script, ASCII text executable nginx binary is different and usually present in /usr/sbin/ . Add that directory to your PATH . $ file /usr

ubuntu系统下IDEA中新建class时报错Unable to parse template "Class"的解决方法

人盡茶涼 提交于 2021-01-28 06:00:10
ubuntu系统下IDEA中新建class时报错Unable to parse template "Class"的解决方法 参考文章: (1)ubuntu系统下IDEA中新建class时报错Unable to parse template "Class"的解决方法 (2)https://www.cnblogs.com/cailiang1026/p/9565079.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/u/4432649/blog/4928450

ImportError: No module named 'matplotlib._path' when running a python script in apache2

爱⌒轻易说出口 提交于 2021-01-28 05:45:39
问题 I have been busting my head over this for a few hours now but I cant nail down the reason why this error occurs. I am trying to run a simple python script in my apache2 server- #!/usr/bin/python3.5 import cgi import cgitb cgitb.enable() import sys sys.path.insert(0, "/home/aswin/anaconda3/lib/python3.6/site-packages") sys.path.insert(0,"/usr/local/lib/python3.5/dist-packages") # HEADERS print("Content-Type:text/html; charset=UTF-8") print() # blank line required at end of headers # CONTENT

Opening AppImage does nothing. What can I do?

瘦欲@ 提交于 2021-01-28 05:30:24
问题 I am a complete newbie to Linux and trying to open an AppImage called Magick which is an Imagemagick application. I tried right clicking on the AppImage and checked "run file as an executable" option but that didn't work. Another thing that I tried is running this command, chmod a+x magick.AppImage This gives me an error, chmod: cannot access 'magick.AppImage': No such file or directory I have also tried running the file by navigating into the folder that contains the file and opening up the

Undefined reference error _dl_stack_flags with gcc and pthreads

回眸只為那壹抹淺笑 提交于 2021-01-28 04:31:07
问题 I get the following error when trying to compile an application using pthreads on Ubuntu: /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libpthread.a(pthread_create.o): In function `allocate_stack': /build/buildd/eglibc-2.11.1/nptl/allocatestack.c:444: undefined reference to `_dl_stack_flags' Ubuntu version is: wade@wadesworld:~$ uname -a Linux wadesworld 2.6.18-194.8.1.el5.028stab070.5ent #1 SMP Fri Sep 17 19:46:02 MSD 2010 i686 GNU/Linux gcc version is: wade@wadesworld:~$ gcc -v Using

Connecting Oracle using unixODBC: Can't open lib '/usr/lib/oracle/12.1/client/lib/libsqora.so.12.1'

走远了吗. 提交于 2021-01-28 03:41:30
问题 I am trying to connect to Oracle using unixODBC but it doesn't work. So far I have tried to follow How do I setup Oracle ODBC drivers on RHEL 6/Linux . When I try to connect using isql I get following: user@user:~$ isql -v oracle-jono [01000][unixODBC][Driver Manager]Can't open lib '/usr/lib/oracle/12.1/client/lib/libsqora.so.12.1' : file not found [ISQL]ERROR: Could not SQLConnect I have checked that /usr/lib/oracle/12.1/client/lib/libsqora.so.12.1 exists. When I run ldd command it says that