> Source: [sk162393](https://support.checkpoint.com/results/sk/sk162393)

# sk162393 - "Error while loading shared libraries" when running fw tab or cpview

| Property | Value |
|----------|-------|
| Solution ID | sk162393 |
| Date Created | 2019-09-12 |
| Last Modified | 2020-09-14 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * When the user runs any *'fw tab'* command, it returns the following error:  
  `fw: error while loading shared libraries: libfw1_light.so: cannot open shared object file: No such file or directory
  `
* When the user runs *cpview* , it returns the following error:  
  `/opt/CPshrd-R80.20/bin/cpview: error while loading shared libraries: libcpsqlite3.so: cannot open shared object file: No such file or directory
  `

## Cause

Shared Libraries are libraries that contain code loaded by programs when they start. Missing shared libraries can cause various issues. However, the issue occurs very rarely.

Shared Libraries in Gaia OS are located in various directories, all of which are annotated by the **LD_LIBRARY_PATH** environmental variable.

There are several reasons for libraries to become missing:

1. The library is actually missing. You can confirm this with:  
   `# find / -iname <missing library file>`  

   For example:  
   `# find / -iname libfw1_light.so`  

2. The **LD_LIBRARY_PATH** variable was modified. To confirm this, compare the variable between two machines:  
   `# echo $LD_LIBRARY_PATH`  

3. The file exists but in a different directory (one of the library directories was changed \\ moved). The result will not be the same as on a clean machine:  
   `# find / -iname <missing library file>`  

   For example:  
   `# find / -iname libfw1_light.so`  
   `/opt/CPsuiteR80.20/fw1/l/libfw1_light.so`  

   Instead of:  
   `/opt/CPsuite-R80.20/fw1/lib/libfw1_light.so`

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
