# make: \*\*\* \[Makefile:108: install\] Error 1

**URL:** https://discourse.cmake.org/t/make-makefile-install-error-1/10982
**Category:** Usage
**Tags:** os:linux
**Created:** [June 8, 2024, 3:24am UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982 "2024-06-08T03:24:53Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![moajouz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/moajouz/32/3843_2.png) [@moajouz](https://discourse.cmake.org/u/moajouz)
#### Post date: [June 8, 2024, 3:24am UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/1 "2024-06-08T03:24:53Z")

</div>

I have been getting this error for a while and a lot of discussions where they had this error, they got a directory in the brackets .  
I got this error after trying “sudo make install”  
this is the full log except for warnings:

```auto
  Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
  EXTERNAL/cmake_install.cmake:42 (include)
  cmake_install.cmake:80 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at EXTERNAL/freeglut/cmake_install.cmake:41 (if):
  if given arguments:

    "EXISTS" "/home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/lib/libg2o_ext_freeglut_minimal" ".so" "AND" "NOT" "IS_SYMLINK" "/home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/lib/libg2o_ext_freeglut_minimal" ".so"

  Unknown arguments specified
Call Stack (most recent call first):
  EXTERNAL/cmake_install.cmake:42 (include)
  cmake_install.cmake:80 (include)

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

```

I just want to know where I should look to find the error and try fixing it

---

<div class="post-metadata">

### Author: ![jtxa](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jtxa/32/1535_2.png) [@jtxa](https://discourse.cmake.org/u/jtxa)
#### Post date: [June 8, 2024, 9:06am UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/2 "2024-06-08T09:06:05Z")

</div>

The keywords used inside the if condition are:

- `EXISTS`
- `AND NOT IS_SYMLINK`

Both expect 1 path or filename. But as you can see, there were given two arguments, a base name and an extension.  
So you probably have a superfluous space somewhere in your filename definition, which effectively makes a list.

---

<div class="post-metadata">

### Author: ![moajouz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/moajouz/32/3843_2.png) [@moajouz](https://discourse.cmake.org/u/moajouz)
#### Post date: [June 9, 2024, 11:13am UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/3 "2024-06-09T11:13:58Z")

</div>

First sorry for the late reply I had a busy 24hrs.

The line below is the line at

> EXTERNAL/freeglut/cmake\_install.cmake

```auto
  if(EXISTS "$ENV{DESTDIR}/home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/lib/libg2o_ext_freeglut_minimal"".so" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/lib/libg2o_ext_freeglut_minimal"".so")

```

so what I did was check

> /home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/lib/

and I found the file named \*_libg2o\_ext\_freeglut\_minimal.so_

what I did try was remove the “” between _minimal_ and _.so_ but it did not work, so I tried removing _$ENV{DESTDIR}_ before _/home_ and it also gave me the same error.

I am new to this so I did not understand what you meant by superfluous space except for the quotations that I removed but put again.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 10, 2024, 1:15pm UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/4 "2024-06-10T13:15:14Z")

</div>

> [@moajouz](#):
>
> ` if(EXISTS "$ENV{DESTDIR}/home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/lib/libg2o_ext_freeglut_minimal"".so" AND`

The `""` in the middle of the path makes two arguments. CMake doesn’t do Bash’s embedded quote syntax; the code generating this needs to be checked. Can you find the `install()` command in the CMake project code that corresponds to this?

---

<div class="post-metadata">

### Author: ![moajouz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/moajouz/32/3843_2.png) [@moajouz](https://discourse.cmake.org/u/moajouz)
#### Post date: [June 10, 2024, 1:30pm UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/5 "2024-06-10T13:30:25Z")

</div>

```auto
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
  list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
   "/home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/include/g2o/freeglut/freeglut_minimal.h")
  if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
    message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
  endif()
  if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
    message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
  endif()
file(INSTALL DESTINATION "/home/moajouz/AUB/HSLAM/Thirdparty/CompiledLibs/include/g2o/freeglut" TYPE FILE FILES "/home/moajouz/AUB/HSLAM/Thirdparty/g2o/EXTERNAL/freeglut/freeglut_minimal.h")
endif()

```

at the last line there’s the INSTALL DESTiNATION and all around the file there’s Cmake\_Install\_COMPONENT

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 10, 2024, 1:32pm UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/6 "2024-06-10T13:32:45Z")

</div>

Where is the command that tries to install `libg2o_ext_freeglut_minimal.so`?

---

<div class="post-metadata">

### Author: ![moajouz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/moajouz/32/3843_2.png) [@moajouz](https://discourse.cmake.org/u/moajouz)
#### Post date: [June 10, 2024, 3:02pm UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/7 "2024-06-10T15:02:29Z")

</div>

it must be in another one, this system is kind of deep. But as I said on top that the file do exist in the specified directory

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 10, 2024, 4:52pm UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/8 "2024-06-10T16:52:00Z")

</div>

The complaint is about the _destination_ not existing.

---

<div class="post-metadata">

### Author: ![moajouz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/moajouz/32/3843_2.png) [@moajouz](https://discourse.cmake.org/u/moajouz)
#### Post date: [June 10, 2024, 4:54pm UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/9 "2024-06-10T16:54:40Z")

</div>

that’s exactly my problem, the destination and the file both exist but I am getting this error.  
someone else installed the same thing as me and it worked for him, so I am kind of baffeled on the problem

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 10, 2024, 4:56pm UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/10 "2024-06-10T16:56:12Z")

</div>

Wait, sorry, I got this confused with another thread I read today. The problem is the `""` in the middle of the argument. CMake is parsing it as `EXISTS "$ENV{DESTDIR}/home/blah/blah" ".so"` which is not valid syntax for the `EXISTS` predicate of a conditional expression.

---

<div class="post-metadata">

### Author: ![moajouz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/moajouz/32/3843_2.png) [@moajouz](https://discourse.cmake.org/u/moajouz)
#### Post date: [June 12, 2024, 11:06am UTC](https://discourse.cmake.org/t/make-makefile-install-error-1/10982/12 "2024-06-12T11:06:31Z")

</div>

Problem fixed, what I did was ignore the modification on these 2 lines in ccmake. :

```auto
- CMAKE_RELWITHDEBINFO_POSTFIX : ""
- CMAKE_MINSIZEREL_POSTFIX : ""

```

so instead of “” I left it empty
