LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-02-2018, 02:28 PM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Rep: Reputation: 7
Notepadqq - successful installation but cannot be started


Hello,
i found that alternative to Notepad++ and wanted to try it out on Linux. The installation of the package went without any errors. I did it with the root user. Now i try to start the application with a normal user but it won't.
Error startting in KDE
Code:
KDEInit could not launch 'notepadqq':
Could not find 'notepadqq' executable.
I cannot find it when i search in my installed applications in KDE.
I edited the PATH variable
Code:
bash-4.3$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/share/ant/bin:/opt/idea/bin:/usr/lib64/kde4/libexec:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/qt/bin:/usr/lib64/qt5/bin:/usr/share/texmf/bin:/opt/notepadqq/bin
I can see the following folders installed on my system
Code:
bash-4.3$ cd /opt/notepadqq/bin
bash-4.3$ ls -la                                                                                                                                
drwxr-xr-x 2 root root 4096 Apr 25 18:53 .
drwxr-xr-x 5 root root 4096 Apr 25 18:53 ..
-rwxr-xr-x 1 root root 1622 Apr 25 18:52 notepadqq
Any idea what i need to do next in order to fix that?
 
Old 05-02-2018, 03:00 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
add this block after the "make install" line in the SlackBuild
Code:
# create a wrapper script and make it executable
mkdir -p $PKG/usr/bin
cat << "EOF" > $PKG/usr/bin/notepadqq
#!/bin/sh
/opt/notepadqq/bin/notepadqq $@
EOF
chmod +x $PKG/usr/bin/notepadqq
then run the SlackBuild again and upgrade the installed package with the new one.
 
1 members found this post helpful.
Old 05-03-2018, 02:45 PM   #3
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
Thank you Ponce!

I had to download and adjust the SlackBuild. Then i removed the old package installed via sbopkg. Then i ran the SlackBuild and installed the crated package using installpkg. That did the trick, now i am able to start the application. Probably the posted script on slackbuilds.org should be adapted with your solution?

Thanks once again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Getting started with the Notepadqq Linux text editor LXer Syndicated Linux News 0 12-13-2017 01:10 PM
first installation of linux successful awu72 Debian 1 04-24-2005 09:58 PM
Successful Laptop installation aviceda SUSE / openSUSE 1 10-15-2004 07:07 AM
Mozilla 1.7 Installation - Partially Successful OldBob Linux - Newbie 4 08-28-2004 10:24 PM
Successful Fedora Installation SabrE7 Fedora - Installation 1 03-12-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration