linux-mint

Unable to compile simple c program in Linux Mint 15

筅森魡賤 提交于 2019-11-28 06:52:43
I am a Linux Mint 15 User. i wanted to write simple program in C. Below is my code.(hw.c) #include<stdio.h> #include<conio.h> int main() { printf("Hello World"); } But, when i try to compile it with gcc gcc -o hw hw.c it gives me an error hw.c:1:18: fatal error: stdio.h: No such file or directory compilation terminated. I googled and found some solutions which say to install build-essential and tried to install it sudo apt-get install build-essintial but it gives an error again. The error is Some packages could not be installed. This may mean that you have requested an impossible situation or

R 3.4.1 “Single Candle” Personal Library Path Error: unable to create ‘NA’

若如初见. 提交于 2019-11-28 05:15:27
I just updated to R (3.4.1 "Single Candle") on my Linux Mint 18.1 Cinnamon machine and I attempted to install a package. R returned the following: > install.packages('ggplot2') Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) Warning in install.packages("ggplot2") : 'lib = "/usr/local/lib/R/site-library"' is not writable Would you like to use a personal library instead? (y/n) y Would you like to create a personal library NA to install packages into? (y/n) y Error in install.packages("ggplot2") : unable to create ‘NA’ I have encountered the 'lib not writable'

R doesn't recognize Pandoc Linux Mint

…衆ロ難τιáo~ 提交于 2019-11-28 01:40:44
I asked a related question: check if a program is installed But am refraining from answering until I've tested the solutions for myself on all three systems. I can get pandoc to work from within R on a windows machine but on linux I get this error/response for each method from the R terminal: 1: > system('pandoc -v') sh: 1: pandoc: not found 2: > myPaths <- c("pandoc", + "~/.cabal/bin/pandoc", + "~/Library/Haskell/bin/pandoc", + "C:\\PROGRA~1\\Pandoc\\bin\\pandoc") > Sys.which(myPaths) pandoc ~/.cabal/bin/pandoc "" "/home/tyler/.cabal/bin/pandoc" ~/Library/Haskell/bin/pandoc C:\\PROGRA~1\

Removing all special characters from a string in Bash

柔情痞子 提交于 2019-11-27 16:12:18
问题 I have a lot of text in lowercase, only problem is, that there is a lot of special characters, which I want to remove it all with numbers too. Next command it's not strong enough: tr -cd '[alpha]\n ' In case of éćščž and some others it returns "?" But I want to remove all of them. Is there any stronger command? I use linux mint 4.3.8(1)-release 回答1: You can use tr to print only the printable characters from a string like below. Just use the below command on your input file. tr -cd "[:print:]

How to install R 3.1.2 on Linux Mint 17.1

♀尐吖头ヾ 提交于 2019-11-27 15:06:34
问题 I have installed the latest version of Linux Mint (17.1) in my computer. I installed R version 3.0.2. However, when I try to install the package xslsx, or dplyr, the system says that these packages are unavailable for the R version I have, and that the shall be installed on the R 3.1.2 version. 've been trying to upgrade R from all the possible means but I haven't had a sucessful result. Is anyone experiencing the same problem? 回答1: Follow the instructions posted here: How to upgrade R in

How to upgrade R in linux?

久未见 提交于 2019-11-27 05:37:44
问题 I am new to Linux. I am using Linux mint 18.1. I have installed R using system software manager. My current R version is 3.2. But I want to upgrade it to version 3.4. How can I do it? 回答1: Note : I now keep on GitHub (here) an up-to-date guide to upgrading R on Linux Mint or Ubuntu Linux, which also includes a bit of extra information about system dependencies for tidyverse , the popular set of data-wrangling packages, as well as devtools , the popular R package development... package. The

R doesn't recognize Pandoc Linux Mint

不羁的心 提交于 2019-11-27 04:49:09
问题 I asked a related question: check if a program is installed But am refraining from answering until I've tested the solutions for myself on all three systems. I can get pandoc to work from within R on a windows machine but on linux I get this error/response for each method from the R terminal: 1: > system('pandoc -v') sh: 1: pandoc: not found 2: > myPaths <- c("pandoc", + "~/.cabal/bin/pandoc", + "~/Library/Haskell/bin/pandoc", + "C:\\PROGRA~1\\Pandoc\\bin\\pandoc") > Sys.which(myPaths) pandoc

Unable to compile simple c program in Linux Mint 15

白昼怎懂夜的黑 提交于 2019-11-27 01:19:56
问题 I am a Linux Mint 15 User. i wanted to write simple program in C. Below is my code.(hw.c) #include<stdio.h> #include<conio.h> int main() { printf("Hello World"); } But, when i try to compile it with gcc gcc -o hw hw.c it gives me an error hw.c:1:18: fatal error: stdio.h: No such file or directory compilation terminated. I googled and found some solutions which say to install build-essential and tried to install it sudo apt-get install build-essintial but it gives an error again. The error is

R 3.4.1 “Single Candle” Personal Library Path Error: unable to create ‘NA’

五迷三道 提交于 2019-11-27 00:51:21
问题 I just updated to R (3.4.1 "Single Candle") on my Linux Mint 18.1 Cinnamon machine and I attempted to install a package. R returned the following: > install.packages('ggplot2') Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) Warning in install.packages("ggplot2") : 'lib = "/usr/local/lib/R/site-library"' is not writable Would you like to use a personal library instead? (y/n) y Would you like to create a personal library NA to install packages into? (y/n) y

JAVA_HOME and PATH are set but java -version still shows the old one

不打扰是莪最后的温柔 提交于 2019-11-27 00:26:12
I am using Linux Mint Cinnamon 14. I have set the $JAVA_HOME and $PATH environment variables in ~/.profile as follows: export JAVA_HOME=/home/aqeel/development/jdk/jdk1.6.0_35 export PATH=/home/aqeel/development/jdk/jdk1.6.0_35/bin:$PATH I then did source ~/.profile to make the proper changes. When I execute java -version command to check the active java version, it shows the default (already installed open-jdk) java version. How can I override the default open-jdk with the one I downloaded? UPDATE: which java says /usr/bin/java $JAVA_HOME/bin/java -version says 'Permission Denied' sudo $JAVA