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 25773 mal Letzte Änderung am Freitag, 17 November 2017 16:15

204 Kommentare

  • Kommentar-Link เว็บแทงบอลออนไลน์ Dienstag, 02 März 2021 09:14 gepostet von เว็บแทงบอลออนไลน์

    That is a very good tip especially to those new to the blogosphere.

    Simple but very precise info… Appreciate your sharing this one.
    A must read post!

  • Kommentar-Link exhibition management agency in Europe Dienstag, 02 März 2021 03:32 gepostet von exhibition management agency in Europe

    Do you have any video of that? I'd care to find out more details.

  • Kommentar-Link reading book Dienstag, 02 März 2021 02:41 gepostet von reading book

    Hi there, its good post concerning media print, we all be aware of media is a impressive source of information.

  • Kommentar-Link Samsung Montag, 01 März 2021 19:15 gepostet von Samsung

    Hello! Someone in my Facebook group shared this site with us
    so I came to take a look. I'm definitely loving the information. I'm book-marking and will be tweeting this to my followers!
    Superb blog and wonderful style and design.

  • Kommentar-Link poker online Montag, 01 März 2021 16:09 gepostet von poker online

    A fascinating ɗiscussion is defᥙnitely worth comment.
    I think that you need to publish more on this subject, it may
    not be a taboo matter but generalⅼy people do not talk about
    these issues. Τo thee next! Best wishes!!

  • Kommentar-Link ufa Montag, 01 März 2021 09:35 gepostet von ufa

    Hi, I think your website might be having browser compatibility issues.

    When I look at your website in Opera, it looks fine but when opening in Internet Explorer, it has some
    overlapping. I just wanted to give you a quick heads up!
    Other then that, awesome blog!

  • Kommentar-Link idn poker Montag, 01 März 2021 05:14 gepostet von idn poker

    It's going to be ending of mine day, however before end I am reading this impressive piece of writing to increase my know-how.

  • Kommentar-Link Dewayne Montag, 01 März 2021 03:52 gepostet von Dewayne

    http://justinbarnettcpa.com/__media__/js/netsoltrademark.php?d=zenxxx.mobi

  • Kommentar-Link junk removal service Sonntag, 28 Februar 2021 22:58 gepostet von junk removal service

    You actually make it appear so easy along with your presentation however I to
    find this matter to be actually one thing that I believe I'd never understand.
    It kind of feels too complex and extremely vast for me. I am having a look ahead to your
    subsequent put up, I'll attempt to get the cling of it!

  • Kommentar-Link papa-wiki.win Sonntag, 28 Februar 2021 22:41 gepostet von papa-wiki.win

    Yoᥙr stylе is really unoque in compɑruson to other folks I've read ѕtuff
    from. Thanks ffor posting whenn you have the opportunitу, Guess
    I wilⅼ juust book mark tһis site.

Schreibe einen Kommentar

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