You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### 2.5.2 Manual Installation by using git clone.
298
312
313
+
Before starting the manual installation, ensure you have the latest versions of the required modules installed. Run the following command to install them:
314
+
```
315
+
pip install setuptools build wheel
316
+
```
317
+
Next, clone the python-ibm_db repository from GitHub:
After cloning the repository, navigate to the python-ibmdb directory and tag all the files with the ASCII tag:
299
322
```
300
-
git clone https://github.com/ibmdb/python-ibm_db/
301
323
cd python-ibmdb
302
-
python setup.py build
303
-
python setup.py install
324
+
chtag -Rtc 819 .
325
+
````
326
+
Now, you can build the package using the following command:
327
+
```
328
+
python -m build
329
+
````
330
+
In case you encounter the following error during the installation process:
331
+
```
332
+
error: command '/usr/lpp/IBM/oelcpp/v2r0/bin/clang' failed: EDC5129I No such file or directory.
333
+
```
334
+
This issue occurs due to the absence of the required clang compiler. To resolve it, use the following alternative command to build the package with the ibm-clang64 compiler:
335
+
```
336
+
CC="ibm-clang64" python -m build
337
+
````
338
+
After building the package, navigate to the dist directory where the .whl file is generated:
339
+
```
340
+
cd dist
341
+
````
342
+
Now, install the .whl file (the wheel file) using pip. Replace nameofwheelfile.whl with the actual name of the wheel file generated:
Finally, verify that the installation was successful by running:
350
+
```
351
+
pip list
304
352
````
353
+
This will show the installed packages, and you should see ibm_db listed among them.
305
354
306
355
Now assuming everything went fine. You can run a test program i.e. **odbc\_test.py** with below content to validate if the setup has been done perfectly i.e. bash-4.3$ python3 odbc\_test.py:
0 commit comments