[Solved] Problem using kdebindings for ruby

As a weekend project I was going to look into using ruby as language for developing KDE plasma widgets.
I have kdebindings-ruby 4.6.0-1 along with the required kdebindings-smoke 4.6.0-1.
When trying:
require "plasma_applet"
I get the error:
LoadError: libsmokebase.so.3: cannot open shared object file: No such file or directory - /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/plasma_applet.so
However when checking the directory
/usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/
32K plasma_applet.so
shows up clear as day.
So what gives? I haved tried to find an answer here on the forums and on google but perhaps my google foo is too weak.
Thanks
Edit: With some more google foo I found this: https://github.com/pcapriotti/kaya/issu … ed#issue/3
Where this statement is made:
Kdebindings-smoke does not provide anymore libsmokebase.so.3, either in chakra-Linux or Arch Linux, was available in kde 4.5.5 but no in 4.6.0
Does this need to be submitted as a bug?
Last edited by ilpianista (2011-02-25 13:22:49)

Hi, i know this is solved but i have similar problem with kdebindings-qtruby 4.7.0-1
i start irb. and when i type require "Qt"
irb(main):003:0> require "Qt"
LoadError: libsmokebase.so.3: cannot open shared object file: No such file or directory - /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/qtruby4.so
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/lib/ruby/site_ruby/1.9.1/Qt.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):3
from /usr/bin/irb:12:in `<main>'
same when i try require "qtruby4" or somethink like this.
but file /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/qtruby4.so exist

Similar Messages

  • [SOLVED] problem using variable in "for do" loop statement

    As 'm fairly new to scripting in linux there are still many things I don't know about the regular syntax. So I've made a script where in a variable $nb I retain the number of lines from the result of a series of commands. I have to use a variable as the number of lines from the output is not the same all the time.
    To finish my script I need to use a for loop something like this
    for i in {1..$nb}
    do
    echo "bla bla bla $i"
    done
    the thing is if $nb, for example, has the value 29 it outputs
    bla bla bla {1..29}
    without doing any loop.
    So how can I use a variable, to define the edge of an interval in a for statement ?
    Last edited by I'mGeorge (2011-06-18 16:19:16)

    The sanctioned method in Bash is using a C style for loop:
    for ((i=0; i<nb;i++)); do
    done
    Because brace expansion is performed before parameter expansion, a range like {1..$nb} will fail.

  • Problem using QuickTime for iPhone

    Hi Everybody,
    I am a developer and i program an application for the iPhone. I want to know if it is possible to block the controller in the Quicktime player for iPhone ?
    I use the embed code with the "<param name='controller' value='false'>" but the controller is always here.
    I want to stream a video, where the user can't paused the video.
    Can you help me ?
    Thanks a lot

    I had this same problem and solved it when I realized that the software upgrade download was about 600MB, but I had less free space available on the iPhone.
    So I deleted some large music files to make space available, then started the upgrade again and it worked fine.
    One caveat: since I had "Automatically fill free space with songs" checked in iTunes, under the iPhone "Music" tab, simply deleting songs from the iPhone's playlist did not clear up the space.  Other songs got loaded to fill up the space.  I had to uncheck "Automatically fill free space with songs" as well as delete songs in order to free up the space.
    Hope this helps.

  • [SOLVED] Problems in permissions for accessing files

    Hi everyone
    let's say I want to copy a folder to /etc/
    the problems is my user can't copy files anywhere other then it's home it doesn't even have access to any file or folder other then home.
    on the other hand I can use root to view and copy or access but the files that root creates or copies are only for root , I mean other groups or users can't access them .
    I tried changing permissions on files ( chmod , chown) but sometimes it takes a lot of time .
    can you tell me how I can give my own user those permissions ?(permission of copying file to a folder like /etc/ or creating a file in there )
    is there a way to change root's default setting so when i create something with root that file or folder be accessible for others automatically ?!
    sorry if my questions are dumb
    --N3mo
    Last edited by N3mo (2012-11-16 16:49:43)

    You can indeed do that. I have no intention of telling you how.
    What you are trying to do is dangerous and, frankly, idiotic. I am sure that you are no idiot but your strategy is idiotic. (Smart people often do dumb things.)
    If you insist on doing this, you can do it. But you should learn about the security system you are disregarding so that you know the risks. If you do that, you will know how to run those risks if you wish.
    What packages are you downloading? Do you mean pacman's cache? Why do you want your user to have write access there?
    Note that apart from the general idiocy of this strategy, it will also prevent some programmes from working at all because some of them check for sane permissions and refuse to run if they find the permissions are insane.
    I don't even understand why you want to change root's settings. If you are working as root anyway, why do you also want your user to have access?
    You can keep themes etc. in your home directory in appropriate places. Then you have complete control of them. You should not be adding additional themes to the system's collection except by installing packages with pacman.
    Please learn about the way that the file structure, permissions and access controls are supposed to work and the protection that they offer you. (From yourself as well as other people.)

  • [Solved] Problems with permissions for a script

    Hi I realize the topic "permissions in Linux" is something that you can find very easily in the internet but I cant seem to figure out a solution for my problem.
    I currently have a working script (taken from the ArchWiki) which enables me to change my display brightness. However I must be either superuser or root to be able to use it since it sends commands to the necessary devices.
    I am currently using fluxbox as "desktop environment" and I want to be able as normal user to change the brightness without calling "sudo" everytime. I have also bound the necessary keys in the fluxbox/keys file to send the necessary commands to the script so my only problem is now with the permission.
    Every help is much appreciated
    Last edited by Triver (2011-12-13 17:34:41)

    ok it works that way (at least when I execute the additional script which contains the sudo command).
    for some reason fluxbox doesnt react when I press the keycode that I looked up with xev (although it works with a combination like "Mod4 b: exec ~/script")
    anyway I think I'll stick with that solution and add some additional commands in the script (like toggle wlan on/off), thx for the quick help
    edit: ok now I'm having difficulties with extending the script
    I want to add additional paramters so the script can be used multifunctional depending on the parameter you launch it with.
    however he seems to think that the String which I want to compare with the parameter is a command.
    here's the code
    #! /bin/sh
    if [$1 = "brightness"]; then
    if [$2 = "up"]; then
    //call the actual brightness script with sudo
    elif [$2 = "down"]; then
    // call the actual brightness scrip with sudo
    else
    echo "invalid parameters!"
    exit 1
    fi
    fi
    exit 0
    I execute the script like this
    ~/script brightness up
    but he only returns me
    ~/script: line 2: [brightness: command not found
    so whats wrong with the code?
    Last edited by Triver (2011-12-13 16:03:07)

  • JPA Problem using alias for columns in a query

    Hello, I am having some problems with a query that I am trying to use in my JEE project. This query doesnt return an entity but a group of values. I created a class representing the result and a query with the jpa constructor expression but it is not working.
    The problem is that in the query I added some alias to the results, and when I try to run the project it says that it cannot parse the query.
    My Query:
    Query query = em.createQuery("SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo"); When I use that the server returns :
    Exception Description: Syntax error parsing the query [SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo], line 1, column 53: syntax error at [as].
    Internal Exception: MismatchedTokenException(8!=82)
    GRAVE: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo], line 1, column 53: syntax error at [as].
    Internal Exception: MismatchedTokenException(8!=82)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: Exception [EclipseLink-8024] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Syntax error parsing the query [SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo], line 1, column 53: syntax error at [as].
    Internal Exception: MismatchedTokenException(8!=82)
    at org.eclipse.persistence.exceptions.JPQLException.syntaxErrorAt(JPQLException.java:362)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.handleRecognitionException(JPQLParser.java:304)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.addError(JPQLParser.java:245)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.reportError(JPQLParser.java:362)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.recoverFromMismatchedElement(Unknown Source)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(Unknown Source)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.mismatch(Unknown Source)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.match(Unknown Source)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.constructorExpression(JPQLParser.java:2635)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectExpression(JPQLParser.java:2045)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectItem(JPQLParser.java:1351)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectClause(JPQLParser.java:1266)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectStatement(JPQLParser.java:352)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.document(JPQLParser.java:276)
    at org.eclipse.persist
    GRAVE: ence.internal.jpa.parsing.jpql.JPQLParser.parse(JPQLParser.java:133)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.buildParseTree(JPQLParser.java:94)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:198)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:173)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:125)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:109)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1326)
    ... 59 more
    Caused by: MismatchedTokenException(8!=82)
    ... 74 more
    What can I do?? I have been stuck in this problem for 2 weeks :s I have tried almost everything..
    Thanks in advance for your help!

    SELECT tmp.contract_no, tmp.Actual, tmp.Actual - tmp.NbHours
    FROM ( SELECT t.contract_no, sum(l.hrs) AS Actual, (c.labour_hours * c.labour_progress_per) / 100 AS NbHours
    FROM TASK_DELEGATION t
    INNER JOIN COST_CODE c
    ON t.cost_code = c.cost_code AND t.contract_no = c.contract_no AND t.is_inactive=0
    INNER JOIN Labour.dbo.LABOURALLOT l
    ON l.contractNo = c.contract_no AND l.costcode = c.cost_code AND l.pm = 'N'
    GROUP BY t.contract_no, c.labour_hours, c.labour_progress_per
    ) tmp

  • [SOLVED] Problem compiling kernel for an Arch install on USB pendrive

    I've installed Arch linux to a USB pendrive and I'm building a kernel for my specific hardware (Acer Aspire One) so as there is no kernel26.img file needed. 
    I've used gothicknight's custom kernel but it doesn't work for me as it doesn't recognise my USB stick (/dev/sdb).  Instead, it just recognises the SSD (/dev/sda).  I believe the standard Arch kernel uses a "hook" called "usb" in order to work from a USB stick - at least that's how I've got the current (default) Archlinux kernel working.
    I'm not that skilled at linux and am still quite new to kernel compilation (I've done it once or twice before and, yes, I've read the ArchWiki articles - both of them).  Can anyone tell me what I should do to get things working on a USB stick install?
    Kind regards
    Last edited by Shagbag (2008-09-30 20:27:49)

    Solved it.  I didn't need to recompile.  I just needed to add 'rootdelay=5' as a kernel boot parameter.

  • Same problem using tomcat for petcode app

    I'm getting frustrated. I don't think i want to use this petsotre application. i need to find something else. I got tired of using the javaserver application so i used the war in tomcat and got this problem when it tried to deploy it.
    Caused by: java.lang.IllegalArgumentException: Duplicate context initialization parameter com.sun.faces.verifyObjects
    at org.apache.catalina.core.StandardContext.addParameter(StandardContext.java:2210)
    ... 46 more
    Sep 9, 2007 8:20:23 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/petstore/WEB-INF/web.xml
    java.lang.IllegalArgumentException: Duplicate context initialization parameter com.sun.faces.verifyObjects
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725)
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
    at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:351)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1034)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:260)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

    Hi,
    the petstore needs some of the services of a Java EE 5 application server to run. It uses some technologies that are part of Java EE 5like annotations, Java Persistence Objeects, JSF 1.2 etc.
    This FAQ lists some of the things needed.
    https://blueprints.dev.java.net/petstore/faq.html#tomcat
    You would have to do some work yourself to get it to run on tomcat as there are not full instructions on how to do this.
    hth,
    Sean

  • Problem using ActiveX for excel app to determine row/col no.s

    hello,
    I would like to develop an app, which would find out the total no. of rows and columns from a given excel sheet and read out the data in the same. I have made use of few vi's I found on forum, but having trouble runing them,
    can anyone please suggest me what could I be doing wrong? I have never used activex before...
    Now on LabVIEW 10.0 on Win7
    Solved!
    Go to Solution.
    Attachments:
    excel used range.vi ‏25 KB
    test.vi ‏19 KB
    read_excel_values.llb ‏382 KB

    Hi
    Yesterday I sent an email to a guy, explaining how to install it. Download the toolkit and the instructions I have attached and you should be fine.
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Attachments:
    _Excel.zip ‏1393 KB
    Howto Install Excel Toolkit.pdf ‏1270 KB

  • Problems using Role for Security to business area

    I have a role set up with several users in it. User A and user B are both in this business area. When I grant access to a business area using this role, they are unable to see the business area in the user edition. If I specify User A to the business area they can see the business area. This does not seem to happen all of the time. Any solutions for this ?
    Has anyone else come across it ?
    Thanks
    Dennis

    You could try this- Tools -> Priviliges -> (Show Privilege for the ROLE not the USER), then see if "Desktop & Plus Privilege" is checked
    I was just creating/removing EUL's in my test instance and the same thing happened to me.

  • Problem using DataSource for JDBC applications

    import javax.sql.*;
    import java.sql.*;
    import java.io.*;
    import java.text.*;
    import javax.naming.*;
    public class CreateMovieTables {
         //static String driver="COM.cloudscape.core.JDBCDriver";
         //static String url="jdbc:cloudscape:";
         String leadActor,title,leadActress,type,dateOfRelease;
         Connection connection;
         Statement statement;
         DataSource dataSource;
         public void initialize() throws SQLException,NamingException{
              //Class.forName(driver);
              Context initialContext = new InitialContext();
              //connection = DriverManager.getConnection(url + "Movies;create=true");
              dataSource = (DataSource) initialContext.lookup("jdbc/Cloudscape");
              connection = dataSource.getConnection();
    the code goes on
    when i start the j2ee sdk server, the cloudscape server the message i get when i run the program is...
    No local string for datasource.wrongclient
    java.sql.SQLException:
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:40)
    at CreateMovieTables.initialize(CreateMovieTables.java:23)
    at CreateMovieTables.main(CreateMovieTables.java:86)
    can anyone please suggest as to where i may be going wrong
    thanx
    -NDK

    I don't agree that a User or System DSN is needed - that's a Windows idiom.
    I haven't used the J2EE SDK to set up a data source, but I know that when I do it in Tomcat I've got to put a <resource-ref> tag in the web.xml that identifies the JNDI lookup string, and then the JDBC driver/URL/username/password details under a <Resource> tag in the context.xml to tell the data source how to create the JDBC connection.
    My <resource-ref> name is "jdbc/APIPrototype". My JNDI lookup string looks like "java:comp/env/jdbc/DataSourceName".
    You've got to do more than just put the JNDI lookup string in the Context lookup. Your error message sounds like the server is saying you've haven't done that set-up work.
    Just a guess - perhaps it's something else, but I couldn't tell from your note. - MOD

  • Problem use c for API

    Hi
    i use berkeley db .my operating system is unix freebsd and c for api.
    i use gcc compiler for compile program.
    my program is like this
    #include <db.h>
    #include <stdio.h>
    int main()
    DB *dbp ;
    u_int32_t flags;
    int ret;
    ret =db_create(&dbp, NULL,0);
    //if (ret != 0) {
    flags = DB_CREATE;
    ret = dbp->open(dbp,NULL,"test.db", NULL,DB_BTREE,0,0);
    if (ret != 0) {
    printf("error occured");
    but when i compile this program diplay this error:
    undefined reference to `db_create'
    please help me.
    if i need to use other compiler or install other software for run c program please say me

    You didn't list the gcc command you used to compile/link.
    This error - "undefined reference to 'db_create'" - means that you
    are not linking against the Berkeley DB library when you attempt
    to load the program. It also could mean you are linking against the wrong version
    of a library.
    Here is an example of command syntax that works for me on SUSE.
    gcc -Wall -I/usr/local/BerkeleyDB.4.4/include inmem2.c -L/usr/local/BerkeleyDB.4.4/lib -ldb-4.4 -o inmem2.o
    env LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.4/lib ./inmem2.o
    Of course, you should substitute in the name of your own program
    and the desired output name.
    Since these procedures are not completely standardized, please
    check your compiler and loader documentation for specific information
    as to how to reference a library on your system during the link
    phase. You may need to set a value for LD_LIBRARY_PATH or a
    similar environment variable.
    Ron Cohen

  • Problem using regex for url

    Heres the problem im trying to match
    <b>Heres my text</b>
    and using this pattern
    Pattern rnpattern = Pattern.compile(".+rel-.+html.+id=.+>(.+)</a>.+");
    and I'm having to matches returned at all. Its actually pulling a full text file and running the pattern on a CharBuffer, but I dont think thats the issue. I have 2 other patterns being run the same way in the same file and theres no problem with them. I know the pattern is not optimized at all, Ive gone through about 15 different iterations of trying different combinations to try and get a match, and this is the last one I tried. the numbers in the url such as this one being 3533 change so that cant be static. And the text such as "Heres my text" changes and thats what I want to capture. If anyone could lend any assistance I would appreciate it.
    Chris N.

    http://www.foad.org/~abigail/Perl/url2.html

  • Having problems using facetime for ipods. When i sign in and click next it goes back to the sign in screen ? what do i need to do

    Having problems with facetime on the ipod. When i sign id and click next it goes back to the sign in screen. Any ideas ??

    Have ou tried here:
    iOS: Troubleshooting FaceTime
    Also try resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.

  • Problem using BAPI for Final Invoice Tick

    Hi,
    I am using the BAPI BAPI_PO_CHANGE to set the Final invoice flag in a PO line item. But the call throws up various kinds of errors.
    Are there any mandatory parameters that I may have missed out for the updation of this particular field.
    Thanks in advance,
    Ashish

    Hi,
    As per my knowledge the following parameters are required.
    PURCHASEORDER
    POHEADER
    POHEADERX
    RETURN
    POITEM
    POITEMX
    There is very good function module documentation available for the BAPI.
    Open the function module in SE37 and click documentation.
    YOu will see example also.
    Thanks
    Ramakrishna

Maybe you are looking for