Themenwahl

Freitag, 17 November 2017 16:15

RMySQL

geschrieben von
Artikel bewerten
(0 Stimmen)

Unter Ubuntu muss der MariaDB Client installiert werden:

jmz@Linux-Server:~$ sudo -s

[sudo] Passwort für jmz:

root@Linux-Server:~# apt-get install libmariadb-client-lgpl-dev
 
Anschliessend wird R gestartet:
 
R
 
Dann wird in R-Crane folgender Befehlt für die Installation der MySQL Librarry durchgeführt. Hier die Konsolenausgabe:
 

> install.packages("RMySQL")
Installiere Paket nach ‘/usr/local/lib/R/site-library’
(da ‘lib’ nicht spezifiziert)
versuche URL 'https://cran.uni-muenster.de/src/contrib/RMySQL_0.10.9.tar.gz'
Content type 'application/x-gzip' length 54012 bytes (52 KB)
==================================================
downloaded 52 KB

* installing *source* package ‘RMySQL’ ...
** Paket ‘RMySQL’ erfolgreich entpackt und MD5 Summen überprüft
Found mysql_config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/mariadb -g -O2 -fstack-protector-strong -Wformat -Werror=format-s ecurity -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized
Using PKG_LIBS=-L/usr/lib/x86_64-linux-gnu -lmariadb
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RMySQL-init.c -o RMySQL-init.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c connection.c -o connection.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c db-apply.c -o db-apply.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c driver.c -o driver.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c exception.c -o exception.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c fields.c -o fields.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c result.c -o result.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mariadb -g -O2 -fstack-protector-st rong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c utils.c -o utils.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RMySQL.so RMySQL -init.o connection.o db-apply.o driver.o exception.o fields.o result.o utils.o -L/usr/lib/x86_64- linux-gnu -lmariadb -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/RMySQL/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (RMySQL)

Die heruntergeladenen Quellpakete sind in
‘/tmp/Rtmpu2AaXI/downloaded_packages’
> library(RMySQL)


Gelesen 17559 mal Letzte Änderung am Freitag, 17 November 2017 16:15

604 Kommentare

  • Kommentar-Link Fnrdwilla Freitag, 27 November 2020 16:20 gepostet von Fnrdwilla

    brand viagra viagra 200mg viagra for sale

  • Kommentar-Link Badminton-Kreuztal.De Freitag, 27 November 2020 12:22 gepostet von Badminton-Kreuztal.De

    Please let me know if you're looking for a article author for your blog.

    You have some really good articles and I feel I would be a good asset.
    If you ever want to take some of the load off, I'd really like to
    write some content for your blog in exchange for a link back to mine.
    Please send me an email if interested. Kudos!

  • Kommentar-Link kindle Freitag, 27 November 2020 03:50 gepostet von kindle

    We stumbled over here by a different page and thought
    I may as well check things out. I like what I see so i am just following you.
    Look forward to going over your web page repeatedly.

  • Kommentar-Link Fdbvgrede Freitag, 27 November 2020 01:34 gepostet von Fdbvgrede

    buy viagra online from canada viagra soft tabs 50mg viagra order online canada

  • Kommentar-Link Fmsgbeigo Donnerstag, 26 November 2020 16:10 gepostet von Fmsgbeigo

    viagra how many can i take did the viagra patent expire viagra au quotidien

  • Kommentar-Link email marketing secret Donnerstag, 26 November 2020 12:24 gepostet von email marketing secret

    This site was... how do you say it? Relevant!!
    Finally I've found something which helped me. Thanks a
    lot!

  • Kommentar-Link Fmsgwilla Donnerstag, 26 November 2020 08:55 gepostet von Fmsgwilla

    ervaring viagra kopen viagra in der schweiz bestellen viagra rezeptfrei kaufen hamburg

  • Kommentar-Link Fnrdbeigo Mittwoch, 25 November 2020 21:48 gepostet von Fnrdbeigo

    viagra is used to treat erectile dysfunction. it works by helping to increase blood flow into the penis during sexual st.. generic viagra discover viagra 100

  • Kommentar-Link Dbsfgrede Mittwoch, 25 November 2020 20:04 gepostet von Dbsfgrede

    can you buy viagra in canada over the counter best viagra tablets india where can i get viagra without a prescription

  • Kommentar-Link grand mondial casino Mittwoch, 25 November 2020 13:02 gepostet von grand mondial casino

    If some one needs to be updated with newest technologies
    after that he must be visit this site and be up
    to date all the time.

Schreibe einen Kommentar

Bitte achten Sie darauf, alle Felder mit Stern * zu füllen. HTML-Code ist nicht erlaubt.