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 8187607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:37:06+00:00 2026-06-07T02:37:06+00:00

i installed sabayon linux and i tried to install pycuda but i am receiving

  • 0

i installed sabayon linux and i tried to install pycuda but i am receiving the following error when i try

su -c “make install”

In file included from src/cpp/cuda.cpp:1:0: src/cpp/cuda.hpp:12:18:
fatal error: cuda.h: No such file or directory compilation terminated.
error: command ‘x86_64-pc-linux-gnu-g++’ failed with exit status 1

I must mention that i can compile with cuda.

The same happens and when i try with

sudo -E sh -c “make install”

My .bashrc is :

# Put your fun stuff here.
export PATH=~/bin:$PATH 
export PATH=$PATH:$HOME/Matlab_2010b/bin 
export PATH=/opt/cuda/bin:$PATH 
export LD_LIBRARY_PATH=/opt/cuda/lib64:$LD_LIBRARY_PATH 
export CUDA_ROOT=/opt/cuda/bin   

(When i do echo $PATH as user it shows me : /opt/cuda/bin but when i try it as root it doesn’t show anything and i had to do export PATH…again in order to show.)

  • 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-06-07T02:37:08+00:00Added an answer on June 7, 2026 at 2:37 am

    You have CUDA installed in a non-standard path and the PyCUDA installer doesn’t know how to find the toolkit headers it needs to compile. As per the installation instructions, you need to do something like this:

    python configure.py --cuda-root=/opt/cuda  
    

    then

    su -c "make install"
    

    this will ensure that the compilation can find the necessary driver API headers to build the support libraries and hardcode all the right paths into the PyCUDA python libraries so that everything works correctly.

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

Sidebar

Related Questions

Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
I installed mysql 5.1.61 from official site. It has been compiled and installed but
Installed rvm gem installed passenger when I try to install passenger-install-apache2-module it gives? root@c2h2crawler:~#
Installed Apache Ver 2.2.3 on my vps with Centos 5.6 but when I try
Installed node-inspector via npm install -g nodeinspector. I can get to the dashboard but
Just installed go via homebrew, trying to install a package and getting the following:
Installed both SonataMediaBundle, SonataNewsBundle and SonataAdminBundle (and much more but these matter). When posting
I installed the packages Android 2.1, Android 2.2 Android 4.0.3, but other than 2.1,
Installed the IronPython tools for VS 2010 but it didn't associate the *.py files
Installed Visual Studio Web Developer 2010 Express from the ISO available from this page:

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.