【问题标题】:Unable to find Foundation Header Files on Ubuntu在 Ubuntu 上找不到 Foundation 头文件
【发布时间】:2012-11-21 16:16:01
【问题描述】:

我有一个带有 Slicehost(现为 RackSpace)的 Ubuntu 服务器,并且正在尝试安装 GNUstep,以便我可以编译 Objective-c 代码。

在通过 apt-get 安装世界并浏览大量博客以尝试编译我的源代码后,我现在似乎很清楚我没有安装 Foundation.h 头文件并且我不知道在哪里从那里得到这些。

它们存在于我的 Mac 上,也许我可以简单地将它们复制到 Ubuntu 上,这一切都会变成肉汁 - 一厢情愿?

感谢任何有关如何定位和安装 Foundation.h 文件的帮助。

回答安迪的问题

~: dpkg -l | grep -i gnustep                                                                                                                                                           
ii  gnustep-back-common               0.12.0-1                    The GNUstep GUI Backend - common files
ii  gnustep-back0.12                  0.12.0-1                    The GNUstep GUI Backend
ii  gnustep-back0.12-art              0.12.0-1                    The GNUstep GUI Backend
ii  gnustep-base-common               1.14.1-2ubuntu1             GNUstep Base library - common files
ii  gnustep-base-runtime              1.14.1-2ubuntu1             GNUstep Base library
ii  gnustep-common                    2.0.2-1                     Common files for the core GNUstep environmen
ii  gnustep-core                      6                           The GNUstep Development Environment -- core
ii  gnustep-devel                     6                           The GNUstep Development Environment -- devel
ii  gnustep-gpbs                      0.12.0-1                    The GNUstep PasteBoard Server
ii  gnustep-gui-common                0.12.0-3ubuntu1             GNUstep GUI Library - common files
ii  gnustep-gui-runtime               0.12.0-3ubuntu1             GNUstep GUI Library - runtime files
ii  gnustep-make                      2.0.2-1                     Basic GNUstep Makefiles
ii  gorm.app                          1.2.2-1                     Visual Interface Builder for GNUstep
ii  libgnustep-base1.14               1.14.1-2ubuntu1             GNUstep Base library
ii  libgnustep-gui0.12                0.12.0-3ubuntu1             GNUstep GUI Library
ii  projectcenter.app                 0.4.3-3ubuntu1              IDE for GNUstep Development
ii  projectmanager.app                0.2-3                       Simple IDE for GNUstep

回答第二个问题。

~: sudo apt-get install libgnustep-base-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
  libgnustep-base-dev: Depends: libxslt1-dev but it is not going to be installed
E: Broken packages

【问题讨论】:

    标签: objective-c ubuntu gnustep


    【解决方案1】:

    您运行的是哪个版本的 Ubuntu 服务器?

    我正在运行 Ubuntu 服务器 10.04 LTS,在 /usr/include/GNUstep/Foundation/Foundation.h 下找到了我的 Foundation.h,它属于包 libgnustep-base-dev。在其他版本中可能会有所不同...

    也许您可以发布dpkg -l | grep -i gnustep 的输出来比较我们的列表。

    root@scm ~ # cat /etc/lsb-release 
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=10.04
    DISTRIB_CODENAME=lucid
    DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"
    root@scm ~ # locate Foundation.h
    /usr/include/GNUstep/Foundation/Foundation.h
    root@scm ~ # ls -l /usr/include/GNUstep/Foundation/Foundation.h
    -rw-r--r-- 1 root root 4991 2009-08-31 23:45 /usr/include/GNUstep/Foundation/Foundation.h
    root@scm ~ # dpkg -S /usr/include/GNUstep/Foundation/Foundation.h
    libgnustep-base-dev: /usr/include/GNUstep/Foundation/Foundation.h
    root@scm ~ # dpkg -l | grep -i gnustep
    ii  gnustep-back-common             0.16.0-3                     The GNUstep GUI Backend - common files
    ii  gnustep-back-doc                0.16.0-3                     The GNUstep GUI Backend documentation
    ii  gnustep-back0.16                0.16.0-3                     The GNUstep GUI Backend
    ii  gnustep-back0.16-art            0.16.0-3                     The GNUstep GUI Backend
    ii  gnustep-base-common             1.19.3-1ubuntu1              GNUstep Base library - common files
    ii  gnustep-base-doc                1.19.3-1ubuntu1              Documentation for the GNUstep Base Library
    ii  gnustep-base-runtime            1.19.3-1ubuntu1              GNUstep Base library
    ii  gnustep-common                  2.2.0-1                      Common files for the core GNUstep environmen
    ii  gnustep-core-devel              7.4                          The GNUstep Development Environment -- core 
    ii  gnustep-core-doc                7.4                          The GNUstep Development Environment -- core 
    ii  gnustep-devel                   7.4                          The GNUstep Development Environment -- devel
    ii  gnustep-gpbs                    0.16.0-3                     The GNUstep PasteBoard Server
    ii  gnustep-gui-common              0.16.0-2build1               GNUstep GUI Library - common files
    ii  gnustep-gui-doc                 0.16.0-2build1               Documentation for the GNUstep GUI Library
    ii  gnustep-gui-runtime             0.16.0-2build1               GNUstep GUI Library - runtime files
    ii  gnustep-make                    2.2.0-1                      Basic GNUstep Makefiles
    ii  gnustep-make-doc                2.2.0-1                      Documentation for GNUstep-make
    ii  gorm.app                        1.2.8-1ubuntu0.1             Visual Interface Builder for GNUstep
    ii  libgnustep-base-dev             1.19.3-1ubuntu1              GNUstep Base header files and development li
    ii  libgnustep-base1.19             1.19.3-1ubuntu1              GNUstep Base library
    ii  libgnustep-gui-dev              0.16.0-2build1               GNUstep GUI header files and static librarie
    ii  libgnustep-gui0.16              0.16.0-2build1               GNUstep GUI Library
    ii  librenaissance0                 0.9.0-2build2                GNUstep GUI Framework - library files
    ii  librenaissance0-dev             0.9.0-2build2                GNUstep GUI Framework - development file
    ii  projectcenter.app               0.5.0~20080704-1build1       IDE for GNUstep Development
    root@scm ~ # 
    

    【讨论】:

    • 8.04,哈迪 - 会尝试你的建议。
    • 回答上面发布的问题。
    • 根据packages.ubuntu.com/en/hardy/libgnustep-base-devlibgnustep-base-dev 似乎存在于hardy 中。可以安装吗?
    • 我尝试安装依赖的 pkgs,但遇到了无法找到附加子依赖项的问题 (1.1.22-1ubuntu1.2)
    • 使用 Ubuntu 12 设置一个全新的环境,然后安装包 'gnustep-devel'。 Foundation.h 出现在安迪所说的地方。标记为正确,因为这真的很有帮助,干杯。
    猜你喜欢
    • 2021-08-11
    • 1970-01-01
    • 1970-01-01
    • 2021-01-31
    • 2019-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多