About installation

465 views
Skip to first unread message

Hyun-Geun Shin

unread,
Jun 29, 2021, 12:06:46 PM6/29/21
to dea...@googlegroups.com

Hello

 

You may think why I ask about an easy task of installation, but I am writing this email after spending a day. So, please explain in detail.

 

I succeeded in unpacking and tried to install by typing make install but confronted a fatal error shown below.

 

[ 10%] Building CXX object source/numerics/CMakeFiles/obj_numerics_release.dir/data_out.cc.o

c++: fatal error: Killed signal terminated program cc1plus

compilation terminated.

make[2]: *** [source/numerics/CMakeFiles/obj_numerics_release.dir/build.make:63: source/numerics/CMakeFiles/obj_numerics_release.dir/data_out.cc.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:1892: source/numerics/CMakeFiles/obj_numerics_release.dir/all] Error 2

make: *** [Makefile:130: all] Error 2

 

Could you help me figure it out?

 

My OS is Windows10, but I install VirtualBox and then install Ubuntu (inside VirtualBox). GCC and CMAKE, ECLIPSE are all updated. Now, I am trying to install deal.II on Ubuntu.

 

Best regards

 

Hyungeun

 

Wolfgang Bangerth

unread,
Jun 29, 2021, 2:11:58 PM6/29/21
to dea...@googlegroups.com
On 6/29/21 10:06 AM, Hyun-Geun Shin wrote:
> [ 10%] Building CXX object
> source/numerics/CMakeFiles/obj_numerics_release.dir/data_out.cc.o
>
> c++: fatal error: Killed signal terminated program cc1plus

Hyungeun:
This typically means that the compiler is running out of memory. If you did
make -j4 install
or similar, try to reduce the number of jobs running concurrently to
make -j1 install
If you didn't specify -j at all, then you don't even have enough memory to run
the compiler just once and you need to increase the memory you give the
virtual machine.

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Hyun-Geun Shin

unread,
Jun 29, 2021, 6:32:45 PM6/29/21
to dea...@googlegroups.com

I finally proceeded with installation by increasing the amount of memory and typing “make -j1 install”, but I have a question.

At the end of the installation, I had the message below.

 

[100%] Linking CXX executable ../bin/step-37.release

[100%] Built target step-37.release

Install the project...

-- Install configuration: "DebugRelease"

CMake Error at cmake/scripts/cmake_install.cmake:41 (file):

  file cannot create directory: /path/usr/local/share/deal.II/scripts.  Maybe

  need administrative privileges.

Call Stack (most recent call first):

  cmake_install.cmake:42 (include)

 

make: *** [Makefile:96: install] Error 1

 

Could you tell me what happened and how can I fixt it?

 

Then, I typed “make test” and a message was shown “100% tests passed, 0 tests failed out of 8.

 

Best regards

 

Hyungeun

 

 

보낸 사람: Wolfgang Bangerth
보낸 날짜: 2021 6 29일 화요일 오후 8:11
받는 사람: dea...@googlegroups.com
제목: Re: [deal.II] About installation

--

The deal.II project is located at http://www.dealii.org/

For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en

---

You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/6a4384c9-07cf-6ca8-559e-c1bc6aa603d3%40colostate.edu.

 

Bruno Turcksin

unread,
Jun 30, 2021, 9:01:33 AM6/30/21
to deal.II User Group
Hyungeun,

It looks like you are trying to install the library in /path/usr/local/share/ but I guess you meant to install it in /usr/local/share/. You need to reconfigure the library to install it at the correct place.

Best,

Bruno

Hyun-Geun Shin

unread,
Jun 30, 2021, 9:11:22 AM6/30/21
to dea...@googlegroups.com
Ah ok.
So, I need to type "cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..". Then, I type "make -j1 install".
Is it correct?


2021년 6월 30일 (수) 오후 3:01, Bruno Turcksin <bruno.t...@gmail.com>님이 작성:

Bruno Turcksin

unread,
Jun 30, 2021, 10:07:53 AM6/30/21
to dea...@googlegroups.com
Le mer. 30 juin 2021 à 09:11, Hyun-Geun Shin <shg...@gmail.com> a écrit :
>
> Ah ok.
> So, I need to type "cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..". Then, I type "make -j1 install".
> Is it correct?

I think you need to be root/use sudo to write in /usr/local. So you
can use "make -j1" but to install the library you will need to do
"sudo make -j1 install` or be root.

Bruno
Reply all
Reply to author
Forward
0 new messages