WebFaction
Community site: login faq

Hi,

I know I can build anything in my home directory using the prefix tag while configuring, like:

./configure --prefix=$HOME
make
make install

But I'm trying to install openCV and the steps I'm following are

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON .
make 
make install

I'm getting the error "CMake Error at cmake_install.cmake:38 (FILE): file cannot create directory: /usr/local/share/opencv. Maybe need administrative privileges.", and was wondering if anyone knew how I could fix it.

Thanks!

asked 25 Apr '11, 00:19

iman453
491827
accept rate: 0%


Hi,

You don't need administrative privileges to use OpenCV. Although not offical, you can find an excellent guide to install it here: http://blog.aicookbook.com/2010/12/installing-opencv-at-webfaction-with-python2-5/

If you want to use Python 2.7 which is the default you just need to replace 7 with 5 for the PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR and PYTHON_LIBRARY

Hope that helps!

permanent link

answered 25 Apr '11, 00:33

neeravk
1.5k3412
accept rate: 41%

Thanks, that helped a lot :)

(25 Apr '11, 16:36) iman453

Just change the CMAKE_INSTALL_PREFIX to your home directory. It builds fine I have it installed myself.

permanent link

answered 26 Apr '11, 19:49

PuercoPop
122
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108

question asked: 25 Apr '11, 00:19

question was seen: 8,698 times

last updated: 26 Apr '11, 19:49

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM