Code Monkey home page Code Monkey logo

Comments (2)

steffengraber avatar steffengraber commented on May 27, 2024

Hi @clinssen Could you check if they are not installed in /usr/include/nest/?

from nest-simulator.

steffengraber avatar steffengraber commented on May 27, 2024

I tried the NEST apt package with nestml and did the following:

  1. log into a clean Ubuntu 22.04.3

  2. install NEST 3.6 with apt

sudo add-apt-repository ppa:nest-simulator/nest
sudo apt-get update 
sudo apt install nest
source /usr/bin/nest_vars
  1. edit /usr/bin/nest-config according https://nestml.readthedocs.io/en/latest/installation.html#anaconda-installation

  2. install latest development nestml as described in the documentation

git clone https://github.com/nest/nestml
cd nestml/
python3 setup.py install
  1. download https://raw.githubusercontent.com/nest/nestml/master/doc/tutorials/izhikevich/izhikevich_task.nestml

  2. create python file to build

import matplotlib.pyplot as plt
import nest
import numpy as np
import os

from pynestml.codegeneration.nest_code_generator_utils import NESTCodeGeneratorUtils

module_name, neuron_model_name = \
    NESTCodeGeneratorUtils.generate_code_for("izhikevich_solution.nestml")
  1. needed some dependencies
    sudo apt install cmake libopenmpi-dev libreadline-dev

  2. build
    python3 buildnestml.py

This ends into this:

...
[100%] Built target nestml_a52ec4cd50eb4517842a4f606050a8d4_module_module
Install the project...
-- Install configuration: ""
-- Installing: /usr/lib/nest/nestml_a52ec4cd50eb4517842a4f606050a8d4_module.so
CMake Error at cmake_install.cmake:41 (file):
  file INSTALL cannot copy file
  "/workspaces/nest-apt_nestml/target/nestml_a52ec4cd50eb4517842a4f606050a8d4_module.so"
  to "/usr/lib/nest/nestml_a52ec4cd50eb4517842a4f606050a8d4_module.so":
  Permission denied.

Doing everything as root works fine!

@clinssen @pnbabu Do you have another example that might better illustrate the problem?

from nest-simulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.