Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:41:39+00:00 2026-05-23T19:41:39+00:00

I am using R in Ubuntu 10.04. I need to understand the documentation. Installing

  • 0

I am using R in Ubuntu 10.04.

I need to understand the documentation.
Installing knncat I get this error message:

gcc -I/usr/share/R/include     -I . -DUSE_R_ALLOC -DCALL_FROM_R -fpic 
-std=gnu99 -O3 -pipe  -g -c ranlib.c -o ranlib.o gcc -I/usr/share/R/include     -I . -DUSE_R_ALLOC -DCALL_FROM_R -fpic  -std=gnu99 -O3 -pipe  -g -c utilsR.c -o utilsR.o gcc -shared -o knncat.so com.o dodisc.o donn.o donnwrap.o dsort.o linpack.o matrix.o
objective.o ords.o ranlib.o utilsR.o -llapack -lblas -lgfortran -lm
-L/usr/lib/R/lib -lR /usr/bin/ld: cannot find -llapack collect2: ld returned 1 exit status make: *** [knncat.so] Error 1 ERROR:
compilation failed for package ‘knncat’

In the documentation I find this recomendation:

Provision is made for using an external LAPACK library, principally to 
cope with BLAS libraries which contain a copy of LAPACK (such as sunperf 
on Solaris, vecLib on OS X and ACML on ‘ix86’/‘x86_64’ Linux)

If it is mandatory (?), I should use this code:

--with-lapack="-L/path/to/libs -llapack -lcblas"

But where? I am using the standard installation of packages in R.

install.packages('knncat')

I am not sure of:

  • Is it mandatory to install lapack? I do have BLAS + LAPACK.
  • How to install a package without using install.packages()?
  • which are the choices I have now?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:41:40+00:00Added an answer on May 23, 2026 at 7:41 pm

    It was an old version of R. Even when I did upgrade, it does not fixed.
    I followed this orders: from http://ubuntuforums.org/showthread.php?t=377323

    sudo aptitude install r-base r-recommended
    

    In R

    install.packages('knncat')
    

    Now it is working!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Ubuntu 8.10 (Intrepid Ibex) and compiling C++ files with GCC, but when
I am using Ubuntu 9.10 For a particular piece of code I require GCC
I am trying to get PhysX working using Ubuntu. First, I downloaded the SDK
Background: I am using Ubuntu The newer python version is not in the apt-get
Im using Ubuntu Karmic as my operating system . I frequently need to search
I'm using ubuntu (and WindowsXP as Virtual mashine on it). I need an automatic
I have a bulk of MS documents and I'm using ubuntu os. I need
I managed to get Ubuntu running on a mobile device. I need to automate
I am using ubuntu 11.04 and need to install glomosim i am a newbie
I'm using ubuntu 10.10, and after making the mistake of installing LAMP, (was unable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.