Git Product home page Git Product logo

Comments (5)

tgamblin avatar tgamblin commented on May 17, 2024

What platform are you on, and how did you install ncurses? I just ran this on our Linux cluster and it installed ok:

$ spack install ncurses
...
==> Successfully installed ncurses
[+] /g/g21/gamblin2/src/spack/opt/chaos_5_x86_64_ib/[email protected]/[email protected]
$ ls  /g/g21/gamblin2/src/spack/opt/chaos_5_x86_64_ib/[email protected]/[email protected] 
bin/  include/  lib/  man/  share/

Can you send me build output?

from spack.

jcftang avatar jcftang commented on May 17, 2024

I'm running the develop branch and I'm on ubuntu 14.04. I'm install tmux, this pulls in ncurses, it errors with this...

** creating formw.pc
** creating menuw.pc
** creating menuw.pc
** creating ncurses++w.pc
** creating ncursesw.pc
** creating ncursesw.pc
** creating panelw.pc
** creating panelw.pc
touch pc-files
/bin/sh -c 'for name in *.pc; do /usr/bin/install -c -m 644 $name /usr/lib/pkgconfig/$name; done'
/usr/bin/install: cannot create regular file ‘/usr/lib/pkgconfig/formw.pc’: Permission denied
/usr/bin/install: cannot create regular file ‘/usr/lib/pkgconfig/menuw.pc’: Permission denied
/usr/bin/install: cannot create regular file ‘/usr/lib/pkgconfig/ncurses++w.pc’: Permission denied
/usr/bin/install: cannot create regular file ‘/usr/lib/pkgconfig/ncursesw.pc’: Permission denied
/usr/bin/install: cannot create regular file ‘/usr/lib/pkgconfig/panelw.pc’: Permission denied
make[1]: *** [install.libs] Error 1
make[1]: *** Waiting for unfinished jobs....
1600 entries written to /home/jtang/develop/spack/opt/unknown_arch/[email protected]/[email protected]/share/terminfo
** built new /home/jtang/develop/spack/opt/unknown_arch/[email protected]/[email protected]/share/terminfo
** sym-linked /home/jtang/develop/spack/opt/unknown_arch/[email protected]/[email protected]/lib/terminfo for compatibility
installing std
installing stdcrt
installing vt100
installing vt300
make[1]: Leaving directory `/tmp/spack-stage/spack-stage-pfBwZ5/ncurses-5.9/misc'
make: *** [install] Error 2
Traceback (most recent call last):
  File "/home/jtang/develop/spack/lib/spack/spack/package.py", line 754, in do_install
    self.install(self.spec, self.prefix)
  File "/home/jtang/develop/spack/var/spack/packages/ncurses/package.py", line 22, in install
    make("install")
  File "/home/jtang/develop/spack/lib/spack/spack/build_environment.py", line 81, in __call__
    super(MakeExecutable, self).__call__(*args, **kwargs)
  File "/home/jtang/develop/spack/lib/spack/spack/util/executable.py", line 83, in __call__
    % (" ".join(cmd), proc.returncode))
spack.util.executable.ProcessError: command 'make -j4 install' returned error code 2

from spack.

tgamblin avatar tgamblin commented on May 17, 2024

Can you try the version on the bugfix/ncurses-pkgconfig branch that I just pushed?

from spack.

jcftang avatar jcftang commented on May 17, 2024

bugfix/ncurses-pkgconfig works, also I have a temp fix in my clone which removes the 'enable-pc-files' line and that works too.

from spack.

tgamblin avatar tgamblin commented on May 17, 2024

Ok, I'll merge the --disable-pc-files version into develop and add a TODO to get the pkgconfig files working. I think I could do this by simply setting PKG_CONFIG_LIBDIR in the build environment, but I should do a review of how pkgconfig files are typically handled before I add that stuff.

This is really only an issue for packages outside Spack. As far as Spack is concerned, packages dependent on ncurses will get -L, -I, and -Wl,-rpath args for it anyway, so their builds should find the deps without pkgconfig.

Thanks!

from spack.

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.